On 8/18/06, Christoph Kiehl <[EMAIL PROTECTED]> wrote:
Nicolas wrote:
> Why not use
>
EffectiveNodeType<file:///home/ntoper/ebooks/jackrabbit/org/apache/jackrabbit/core/nodetype/EffectiveNodeType.html>
>
>
*reregisterNodeType<file:///home/ntoper/ebooks/jackrabbit/org/apache/jackrabbit/core/nodetype/NodeTypeRegistry.html#reregisterNodeType%28org.apache.jackrabbit.core.nodetype.NodeTypeDef%29>
>
>
*(NodeTypeDef<file:///home/ntoper/ebooks/jackrabbit/org/apache/jackrabbit/core/nodetype/NodeTypeDef.html>
>
> ntd) from the NodeTypeRegistry?.
Because of three things:
1. NodeTypeRegistry is no part of the public API, but JackrabbitNodeTypeManager
is to my understanding.
2. My nodetype definitions are in CND-Format. If I want to change my node types
I could parse them with CompactNodeTypeDefReader. But as far as I can see there
is no possibility to get the namespaces defined in the CND file and register
them before my nodetypes.
3. A lot of people are asking for such a feature and I think my proposed
solution is an easy way for everyone to change nodetypes.
unfortunately supporting node type modifications requires more than just adding
a method... see http://issues.apache.org/jira/browse/JCR-322
cheers
stefan
Cheers,
Christoph