org.datanucleus.jdo.metadata
Class JDOAnnotationReader
java.lang.Object
org.datanucleus.metadata.annotations.AbstractAnnotationReader
org.datanucleus.jdo.metadata.JDOAnnotationReader
- All Implemented Interfaces:
- AnnotationReader
public class JDOAnnotationReader
- extends AbstractAnnotationReader
Implementation for Annotation Reader for JDK 1.5 annotations using the JDO 2.1 definition.
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
JDOAnnotationReader
public JDOAnnotationReader(MetaDataManager mgr)
- Constructor.
- Parameters:
mgr - MetaData manager
processClassAnnotations
protected AbstractClassMetaData processClassAnnotations(PackageMetaData pmd,
java.lang.Class cls,
AnnotationObject[] annotations,
ClassLoaderResolver clr)
- Method to process the "class" level annotations and create the outline ClassMetaData object
- Specified by:
processClassAnnotations in class AbstractAnnotationReader
- Parameters:
pmd - Parent PackageMetaDatacls - The classannotations - Annotations for this classclr - ClassLoader resolver
- Returns:
- The ClassMetaData/InterfaceMetaData (or null if no annotations)
processMemberAnnotations
protected AbstractMemberMetaData processMemberAnnotations(AbstractClassMetaData cmd,
Member member,
AnnotationObject[] annotations,
boolean propertyAccessor)
- Convenience method to process the annotations for a field/property.
The passed annotations may have been specified on the field or on the getter methods.
- Specified by:
processMemberAnnotations in class AbstractAnnotationReader
- Parameters:
cmd - The ClassMetaData/InterfaceMetaData to updatemember - The field/propertyannotations - Annotations for the field/propertypropertyAccessor - if there are properties for this class
- Returns:
- The FieldMetaData/PropertyMetaData that was added (if any)
processMethodAnnotations
protected void processMethodAnnotations(AbstractClassMetaData cmd,
java.lang.reflect.Method method)
- Method to take the passed in outline ClassMetaData and process the annotations for
method adding any necessary MetaData to the ClassMetaData.
- Specified by:
processMethodAnnotations in class AbstractAnnotationReader
- Parameters:
cmd - The ClassMetaData/InterfaceMetaData (to be updated)method - The method
Copyright © 2010. All Rights Reserved.