jackrabbit-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From David Nuescheler <david.nuesche...@gmail.com>
Subject Re: register NodeTypeDef
Date Wed, 01 Dec 2004 15:30:20 GMT
> > Hi list,
> > has anybody a code example how to create a custom nodetype?
> > It's not the NodeTypeDef itself that's the problem, the registration causes
> > headaches with me.
> >
> > How do I create a NodeTypeRegistry to call registerNodeType on it?
> > Is it somewhere exposed or do I have to build it on my own (which will be even
> > harder because I somehow need a NamespaceRegistryImpl and Filesystem object).
> 
> Workspace wsp = session.getWorkspace();
> NodeTypeManager ntMgr = wsp.getNodeTypeManager();
> NodeTypeRegistry ntReg = ((NodeTypeManagerImpl) ntMgr).getNodeTypeRegistry();
> 
please keep in ming that this is outside 
the jsr-170-spec:
http://incubator.apache.org/jackrabbit/images/arch/overview.png

and of course find a pretty gui do try things out at ;) :
http://jsr170tools.day.com/crx/nodetypes/index.jsp

regards,
david
----------------------------------------------------------------------
standardize your content-repository !
                               http://www.jcp.org/en/jsr/detail?id=170
---------------------------------------< david.nuescheler@day.com >---

This message is a private communication. If you are not the intended
recipient, please do not read, copy, or use it, and do not disclose it
to others. Please notify the sender of the delivery error by replying
to this message, and then delete it from your system. Thank you.

The sender does not assume any liability for timely, trouble free,
complete, virus free, secure, error free or uninterrupted arrival of
this e-mail. For verification please request a hard copy version.


mailto:david.nuescheler@day.com
http://www.day.com

David Nuescheler
Chief Technology Officer
Day Software AG
Barfuesserplatz 6 / Postfach
4001 Basel
Switzerland

T  41 61 226 98 98
F  41 61 226 98 97

Mime
View raw message