org.jpox.metadata.annotations
Class JDOAnnotationReader
java.lang.Object
org.jpox.metadata.annotations.AbstractAnnotationReader
org.jpox.metadata.annotations.JDOAnnotationReader
- All Implemented Interfaces:
- AnnotationReader
public class JDOAnnotationReader
- extends AbstractAnnotationReader
Implementation for Annotation Reader for JDK 1.5 annotations using JDO's definition.
- Version:
- $Revision: 1.47.2.1 $
|
Method Summary |
protected org.jpox.metadata.ClassMetaData |
processClassAnnotations(org.jpox.metadata.PackageMetaData pmd,
java.lang.Class cls,
AnnotationObject[] annotations)
Method to process the "class" level annotations and create the outline ClassMetaData object |
protected org.jpox.metadata.FieldMetaData |
processFieldAnnotations(org.jpox.metadata.ClassMetaData cmd,
java.lang.reflect.Field field,
AnnotationObject[] annotations)
Convenience method to process the annotations for a field. |
protected void |
processMethodAnnotations(org.jpox.metadata.ClassMetaData 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. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
JDOAnnotationReader
public JDOAnnotationReader(org.jpox.metadata.MetaDataManager mgr)
- Constructor.
- Parameters:
mgr - MetaData manager
processClassAnnotations
protected org.jpox.metadata.ClassMetaData processClassAnnotations(org.jpox.metadata.PackageMetaData pmd,
java.lang.Class cls,
AnnotationObject[] annotations)
- 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 class
- Returns:
- The ClassMetaData (or null if no annotations)
processFieldAnnotations
protected org.jpox.metadata.FieldMetaData processFieldAnnotations(org.jpox.metadata.ClassMetaData cmd,
java.lang.reflect.Field field,
AnnotationObject[] annotations)
- Convenience method to process the annotations for a field.
The passed annotations may have been specified on the field or on setter/getter methods for the field.
- Specified by:
processFieldAnnotations in class AbstractAnnotationReader
- Parameters:
cmd - The ClassMetaData to updatefield - The fieldannotations - The annotations for the field/method
- Returns:
- The FieldMetaData (if created)
processMethodAnnotations
protected void processMethodAnnotations(org.jpox.metadata.ClassMetaData 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 (to be updated)method - The method
Copyright © 2003-2008 Java Persistent Objects (JPOX). All Rights Reserved.