On 7/13/06, Christoph Kiehl <[EMAIL PROTECTED]> wrote:
Stefan Guggisberg wrote:
>> in our current system we are able to extend nodetypes by adding
>> properties or
>> nodes after the nodetype has been initially created. These
>> properties/childnodes
>> have to be non-mandatory.
>> As of now Jackrabbit doesn't support this. Are there any reason
>> besides 'it's
>> just not implemented' why this is currently not possible?
>
> trivial changes are supported, i.e. adding non-mandatory properties for
> example
> should be fine. please take a look at the implementation of
> NodeTypeRegistry.reregister()
> and the javadoc of NodeTypeDefDiff.
Very nice! Didn't know that. How am I supposed to use the NodeTypeRegistry? I
could use Workspace.getNodeTypeManager() cast it to NodeTypeManagerImpl and call
getNodeTypeRegistry. But is there a better way to get the NodeTypeRegistry
without knowing about NodeTypeManagerImpl?
see e.g.
http://thread.gmane.org/gmane.comp.apache.jackrabbit.devel/5929/focus=5978
cheers
stefan
Thanks,
Christoph