|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.sun.enterprise.deployment.annotation.handlers.AbstractHandler
org.glassfish.ejb.deployment.annotation.handlers.AbstractAttributeHandler
public abstract class AbstractAttributeHandler
This is an abstract class encapsulate generic behaviour of annotation handler applying on Ejb Class. It will get the corresponding EjbDescriptors associated to the annotation on the given Ejb Class and then pass it to underlying processAnnotation method. Concrete subclass handlers need to implement the following: public Class<? extends Annotation> getAnnotationType(); protected HandlerProcessingResult processAnnotation(AnnotationInfo ainfo, EjbContext[] ejbContexts) throws AnnotationProcessorException; It may also need to override the following: a) if other annotations need to be processed prior to given annotation: public Class<? extends Annotation>[] getTypeDependencies(); b) if the given annotation can be processed while processing another annotation protected boolean isDelegatee(); c) if we need to process for interceptor protected HandlerProcessingResult processAnnotation(AnnotationInfo ainfo, EjbInterceptorContext ejbInterceptorContext) throws AnnotationProcessorException; d) indicate the annotation support type inheritance protected boolean supportTypeIneritance();
| Field Summary |
|---|
| Fields inherited from class com.sun.enterprise.deployment.annotation.handlers.AbstractHandler |
|---|
ejbProvider, localStrings, logger |
| Constructor Summary | |
|---|---|
AbstractAttributeHandler()
|
|
| Method Summary | |
|---|---|
protected boolean |
isDelegatee()
This indicates whether the annotation can be processed by delegation from the another annotation. |
HandlerProcessingResult |
processAnnotation(AnnotationInfo ainfo)
Process a particular annotation which type is the same as the one returned by @see getAnnotationType(). |
protected abstract HandlerProcessingResult |
processAnnotation(AnnotationInfo ainfo,
EjbContext[] ejbContexts)
Process Annotation with given EjbContexts. |
protected HandlerProcessingResult |
processAnnotation(AnnotationInfo ainfo,
EjbInterceptorContext ejbInterceptorContext)
Process Annotation with given InteceptorContext. |
protected boolean |
supportTypeInheritance()
This indicates whether the annotation type should be processed for type level in super-class. |
| Methods inherited from class com.sun.enterprise.deployment.annotation.handlers.AbstractHandler |
|---|
getConnectorAnnotationTypes, getDefaultFailedResult, getDefaultProcessedResult, getEjbAndWebAnnotationTypes, getEjbAnnotationTypes, getInjectionMethodPropertyName, getInvalidAnnotatedElementHandlerResult, getOverallProcessingResult, getTypeDependencies, getWebAnnotationTypes, log, validateInjectionMethod |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface org.glassfish.apf.AnnotationHandler |
|---|
getAnnotationType |
| Constructor Detail |
|---|
public AbstractAttributeHandler()
| Method Detail |
|---|
protected abstract HandlerProcessingResult processAnnotation(AnnotationInfo ainfo,
EjbContext[] ejbContexts)
throws AnnotationProcessorException
ainfo - ejbContexts -
AnnotationProcessorException
protected HandlerProcessingResult processAnnotation(AnnotationInfo ainfo,
EjbInterceptorContext ejbInterceptorContext)
throws AnnotationProcessorException
ainfo - ejbInterceptorContext -
AnnotationProcessorException
public HandlerProcessingResult processAnnotation(AnnotationInfo ainfo)
throws AnnotationProcessorException
ainfo - the annotation information
AnnotationProcessorExceptionprotected boolean isDelegatee()
protected boolean supportTypeInheritance()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||