jackrabbit-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Stefan Guggisberg <stefan.guggisb...@gmail.com>
Subject Re: register NodeTypeDef
Date Tue, 30 Nov 2004 09:09:16 GMT
On Mon, 29 Nov 2004 23:29:11 +0100, jocsch <jocsch@freaquac.de> wrote:
> 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();

stefan

> 
> Would be a great help for me to see how the things fit together.
> 
> Thanks,
>  Markus Joschko
> 
>

Mime
View raw message