jackrabbit-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Justin Edelson <justinedel...@gmail.com>
Subject Re: node type registration behavour
Date Mon, 25 Jan 2010 22:34:57 GMT
On 1/25/10 5:14 PM, ChadDavis wrote:
>> IMO no ;) but there following method pretty much does what you'e
>> looking for:
>>
>> http://jackrabbit.apache.org/api/1.6/org/apache/jackrabbit/core/nodetype/NodeTypeManagerImpl.html#registerNodeTypes(java.io.InputStream,%20java.lang.String,%20boolean)
>>      
> That method no longer exists in 2.0.  Seems like this method has been
> replaced by methods that only work on NodeTypeDefinitions, and I don't
> see any methods anywhere to produce those objects from a .cnd of xml
> file.
>
> Please point me to the API if there's a way to do this in 2.0.
>
>    
I believe the correct call in 2.0 is 
org.apache.jackrabbit.commons.cnd.CndImporter. registerNodeTypes(): 
http://svn.apache.org/viewvc/jackrabbit/trunk/jackrabbit-jcr-commons/src/main/java/org/apache/jackrabbit/commons/cnd/CndImporter.java?revision=816120&view=markup

Justin

>> cheers
>> stefan
>>
>>      
>>>        
>>      


Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message