com.force.sdk.jpa.annotation
Class ForceAnnotationReader

java.lang.Object
  extended by org.datanucleus.metadata.annotations.AbstractAnnotationReader
      extended by com.force.sdk.jpa.annotation.ForceAnnotationReader
All Implemented Interfaces:
org.datanucleus.metadata.annotations.AnnotationReader

public class ForceAnnotationReader
extends org.datanucleus.metadata.annotations.AbstractAnnotationReader

Reader for processing annoations found in the com.force.sdk.jpa.annotation package.

Author:
Fiaz Hossain

Field Summary
 
Fields inherited from class org.datanucleus.metadata.annotations.AbstractAnnotationReader
LOCALISER, mgr, supportedPackages
 
Constructor Summary
ForceAnnotationReader(org.datanucleus.metadata.MetaDataManager mgr)
          Create an annotation reader that is designed to read specific Force.com annotations.
 
Method Summary
protected  org.datanucleus.metadata.AbstractClassMetaData processClassAnnotations(org.datanucleus.metadata.PackageMetaData pmd, Class cls, org.datanucleus.metadata.annotations.AnnotationObject[] annotations, org.datanucleus.ClassLoaderResolver clr)
          process annotations at the class level.
protected  org.datanucleus.metadata.AbstractMemberMetaData processMemberAnnotations(org.datanucleus.metadata.AbstractClassMetaData cmd, org.datanucleus.metadata.annotations.Member member, org.datanucleus.metadata.annotations.AnnotationObject[] annotations, boolean propertyAccessor)
          process annotations at the field/property level.
protected  void processMethodAnnotations(org.datanucleus.metadata.AbstractClassMetaData cmd, Method method)
          do not process annotations on methods, stick to properties only.
 
Methods inherited from class org.datanucleus.metadata.annotations.AbstractAnnotationReader
getAnnotationObjectsForAnnotations, getClassAnnotationsForClass, getFieldAnnotationsForClass, getJavaBeanAccessorAnnotationsForClass, getMetaDataForClass, getMethodAnnotationsForClass, getSupportedAnnotationPackages, isSupportedAnnotation, setSupportedAnnotationPackages
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ForceAnnotationReader

public ForceAnnotationReader(org.datanucleus.metadata.MetaDataManager mgr)
Create an annotation reader that is designed to read specific Force.com annotations.

Parameters:
mgr - the metadata manager for this application
Method Detail

processClassAnnotations

protected org.datanucleus.metadata.AbstractClassMetaData processClassAnnotations(org.datanucleus.metadata.PackageMetaData pmd,
                                                                                 Class cls,
                                                                                 org.datanucleus.metadata.annotations.AnnotationObject[] annotations,
                                                                                 org.datanucleus.ClassLoaderResolver clr)
process annotations at the class level.

Specified by:
processClassAnnotations in class org.datanucleus.metadata.annotations.AbstractAnnotationReader

processMemberAnnotations

protected org.datanucleus.metadata.AbstractMemberMetaData processMemberAnnotations(org.datanucleus.metadata.AbstractClassMetaData cmd,
                                                                                   org.datanucleus.metadata.annotations.Member member,
                                                                                   org.datanucleus.metadata.annotations.AnnotationObject[] annotations,
                                                                                   boolean propertyAccessor)
process annotations at the field/property level.

Specified by:
processMemberAnnotations in class org.datanucleus.metadata.annotations.AbstractAnnotationReader

processMethodAnnotations

protected void processMethodAnnotations(org.datanucleus.metadata.AbstractClassMetaData cmd,
                                        Method method)
do not process annotations on methods, stick to properties only.

Specified by:
processMethodAnnotations in class org.datanucleus.metadata.annotations.AbstractAnnotationReader


Copyright © 2011. All Rights Reserved.