org.apache.jackrabbit.ocm.mapper.impl.annotation
Class AnnotationDescriptorReader

java.lang.Object
  extended by org.apache.jackrabbit.ocm.mapper.impl.annotation.AnnotationDescriptorReader
All Implemented Interfaces:
DescriptorReader

public class AnnotationDescriptorReader
extends Object
implements DescriptorReader

Helper class that reads the xml mapping file and load all class descriptors into memory (object graph)

Author:
Lombart Christophe , : Boni Gopalan

Constructor Summary
AnnotationDescriptorReader(List<Class> annotatedClassNames)
           
 
Method Summary
 MappingDescriptor loadClassDescriptors()
          Load all class descriptors found in an classdescriptor definition.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AnnotationDescriptorReader

public AnnotationDescriptorReader(List<Class> annotatedClassNames)
Method Detail

loadClassDescriptors

public MappingDescriptor loadClassDescriptors()
Description copied from interface: DescriptorReader
Load all class descriptors found in an classdescriptor definition. A classdescriptor definition can be a xml config file or annotations or another kind of resource which contain the classdescriptors DescriptorReader is an abstraction used to maximize reusability in AbstractMapperImpl

Specified by:
loadClassDescriptors in interface DescriptorReader
Returns:
a MappingDescriptor wich will contains a collection of classdescriptors


Copyright © 2004-2008 The Apache Software Foundation. All Rights Reserved.