Hi all,

Here goes another question about the OCM. According to the documentation, one 
would define new namespaces and new nodetypes as part of an CND configuration. 
However, I noticed that most things that you define on the CND file, you could 
define them as annotations (i.e. jcrSuperTypes, etc.). Trying to get OCM to 
load the new types from annotations I got to the AnnotationDescriptorReader 
class, which JavaDoc is this:

<code>
/**
 * Helper class that reads the xml mapping file and load all class descriptors 
into memory (object graph)
 *
 * @author <a href="mailto:[email protected]";>Lombart Christophe </a>
 * @author : <a href="mailto:[email protected]";>Boni Gopalan</a>
 *
 */
public class AnnotationDescriptorReader implements DescriptorReader
</code>

However, the class reads annotation descriptors, not an XML, and interestingly 
enough, the JavaDoc is identical to the one in the class 
DigesterDescriptorReader.

So, summarizing, is it possible to load namespace definitions without the CND 
or an XML? just with annotations? Everything that's needed seems to be there 
already.

Many thanks guys!
Juan

Reply via email to