|
||||||||||
| 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
public abstract class AbstractHandler
This is an abstract base class for Handlers. Concrete subclass need to implements the following methods: public Class<? extends Annotation> getAnnotationType(); public HandlerProcessingResult processAnnotation(AnnotationInfo ainfo) throws AnnotationProcessorException;
| Field Summary | |
|---|---|
protected AnnotationTypesProvider |
ejbProvider
|
protected static LocalStringManagerImpl |
localStrings
|
protected java.util.logging.Logger |
logger
|
| Constructor Summary | |
|---|---|
AbstractHandler()
|
|
| Method Summary | |
|---|---|
protected java.lang.Class<? extends java.lang.annotation.Annotation>[] |
getConnectorAnnotationTypes()
This is called by getTypeDependencies(). |
protected HandlerProcessingResult |
getDefaultFailedResult()
|
protected HandlerProcessingResult |
getDefaultProcessedResult()
|
protected java.lang.Class<? extends java.lang.annotation.Annotation>[] |
getEjbAndWebAnnotationTypes()
This is called by getTypeDependencies(). |
protected java.lang.Class<? extends java.lang.annotation.Annotation>[] |
getEjbAnnotationTypes()
This is called by getTypeDependencies(). |
protected java.lang.String |
getInjectionMethodPropertyName(java.lang.reflect.Method method,
AnnotationInfo ainfo)
|
protected HandlerProcessingResult |
getInvalidAnnotatedElementHandlerResult(AnnotatedElementHandler aeHandler,
AnnotationInfo ainfo)
|
protected HandlerProcessingResult |
getOverallProcessingResult(java.util.List<HandlerProcessingResult> resultList)
|
java.lang.Class<? extends java.lang.annotation.Annotation>[] |
getTypeDependencies()
|
protected java.lang.Class<? extends java.lang.annotation.Annotation>[] |
getWebAnnotationTypes()
This is called by getTypeDependencies(). |
protected void |
log(java.util.logging.Level level,
AnnotationInfo ainfo,
java.lang.String localizedMessage)
|
protected void |
validateInjectionMethod(java.lang.reflect.Method method,
AnnotationInfo ainfo)
Check if given method is a valid injection method. |
| 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, processAnnotation |
| Field Detail |
|---|
protected static final LocalStringManagerImpl localStrings
protected java.util.logging.Logger logger
protected AnnotationTypesProvider ejbProvider
| Constructor Detail |
|---|
public AbstractHandler()
| Method Detail |
|---|
public java.lang.Class<? extends java.lang.annotation.Annotation>[] getTypeDependencies()
getTypeDependencies in interface AnnotationHandlerprotected HandlerProcessingResult getDefaultProcessedResult()
protected HandlerProcessingResult getDefaultFailedResult()
protected HandlerProcessingResult getInvalidAnnotatedElementHandlerResult(AnnotatedElementHandler aeHandler,
AnnotationInfo ainfo)
throws AnnotationProcessorException
aeHandler - ainfo -
AnnotationProcessorException
protected void log(java.util.logging.Level level,
AnnotationInfo ainfo,
java.lang.String localizedMessage)
throws AnnotationProcessorException
AnnotationProcessorException
protected java.lang.String getInjectionMethodPropertyName(java.lang.reflect.Method method,
AnnotationInfo ainfo)
throws AnnotationProcessorException
AnnotationProcessorException
protected void validateInjectionMethod(java.lang.reflect.Method method,
AnnotationInfo ainfo)
throws AnnotationProcessorException
AnnotationProcessorExceptionprotected HandlerProcessingResult getOverallProcessingResult(java.util.List<HandlerProcessingResult> resultList)
protected java.lang.Class<? extends java.lang.annotation.Annotation>[] getEjbAnnotationTypes()
protected java.lang.Class<? extends java.lang.annotation.Annotation>[] getEjbAndWebAnnotationTypes()
protected java.lang.Class<? extends java.lang.annotation.Annotation>[] getWebAnnotationTypes()
protected java.lang.Class<? extends java.lang.annotation.Annotation>[] getConnectorAnnotationTypes()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||