org.castor.jdo.jpa.processors
Class BaseJPAAnnotationProcessor

java.lang.Object
  extended by org.castor.jdo.jpa.processors.BaseJPAAnnotationProcessor
All Implemented Interfaces:
AnnotationProcessor, TargetAwareAnnotationProcessor
Direct Known Subclasses:
JPABasicProcessor, JPAColumnProcessor, JPAEntityProcessor, JPAIdProcessor, JPAJoinColumnProcessor, JPAJoinTableProcessor, JPAManyToManyProcessor, JPAManyToOneProcessor, JPAOneToManyProcessor, JPAOneToOneProcessor, JPATableProcessor, JPATransientProcessor

public abstract class BaseJPAAnnotationProcessor
extends java.lang.Object
implements TargetAwareAnnotationProcessor

Basic abstract TargetAwareAnnotationProcessor that does not allow processing without a target (returns false).

Author:
Peter Schmidt
See Also:
AnnotationProcessor#processAnnotation(BaseNature, Annotation)

Constructor Summary
BaseJPAAnnotationProcessor()
           
 
Method Summary
<I extends BaseNature,A extends java.lang.annotation.Annotation>
boolean
processAnnotation(I info, A annotation)
          Returns false - non target aware processing shall not be implemented in JPA-Annotation processing.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.castor.core.annotationprocessing.TargetAwareAnnotationProcessor
processAnnotation
 
Methods inherited from interface org.castor.core.annotationprocessing.AnnotationProcessor
forAnnotationClass
 

Constructor Detail

BaseJPAAnnotationProcessor

public BaseJPAAnnotationProcessor()
Method Detail

processAnnotation

public final <I extends BaseNature,A extends java.lang.annotation.Annotation> boolean processAnnotation(I info,
                                                                                                        A annotation)
Returns false - non target aware processing shall not be implemented in JPA-Annotation processing. The processing action of this processor. If an annotation is given which is not supported false is returned.

Specified by:
processAnnotation in interface AnnotationProcessor
Parameters:
info - the Info class that should be filled with the information read
annotation - the annotation to process
Returns:
true, if the annotation was processed successfully, false if not
See Also:
AnnotationProcessor.processAnnotation(BaseNature, Annotation)


Intalio Inc. (C) 1999-2008. All rights reserved http://www.intalio.com