public abstract class AbstractHandler extends Object implements AnnotationHandler
AnnotationHandlerFor so that appropriate metadata
can be generated statically. Concrete subclass has to also implement the following method:
public HandlerProcessingResult processAnnotation(AnnotationInfo ainfo)| Modifier and Type | Field and Description |
|---|---|
protected AnnotationTypesProvider |
ejbProvider |
protected static LocalStringManagerImpl |
localStrings |
protected Logger |
logger |
ANNOTATION_HANDLER_METADATA| Constructor and Description |
|---|
AbstractHandler() |
| Modifier and Type | Method and Description |
|---|---|
Class<? extends Annotation> |
getAnnotationType() |
protected Class<? extends Annotation>[] |
getConnectorAnnotationTypes()
This is called by getTypeDependencies().
|
protected HandlerProcessingResult |
getDefaultFailedResult() |
protected HandlerProcessingResult |
getDefaultProcessedResult() |
protected Class<? extends Annotation>[] |
getEjbAndWebAnnotationTypes()
This is called by getTypeDependencies().
|
protected Class<? extends Annotation>[] |
getEjbAnnotationTypes()
This is called by getTypeDependencies().
|
protected String |
getInjectionMethodPropertyName(Method method,
AnnotationInfo ainfo) |
protected HandlerProcessingResult |
getInvalidAnnotatedElementHandlerResult(AnnotatedElementHandler aeHandler,
AnnotationInfo ainfo) |
protected HandlerProcessingResult |
getOverallProcessingResult(List<HandlerProcessingResult> resultList)
Returns the result with the highest result type where
FAILED > PROCESSED > UNPROCESSED
|
Class<? extends Annotation>[] |
getTypeDependencies() |
protected Class<? extends Annotation>[] |
getWebAnnotationTypes()
This is called by getTypeDependencies().
|
protected void |
log(Level level,
AnnotationInfo ainfo,
String localizedMessage)
Logs an error with the annotation processing logger
|
protected void |
validateInjectionMethod(Method method,
AnnotationInfo ainfo)
Check if given method is a valid injection method.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitprocessAnnotationprotected static final LocalStringManagerImpl localStrings
protected Logger logger
@Inject @Named(value="EJB") @Optional protected AnnotationTypesProvider ejbProvider
public final Class<? extends Annotation> getAnnotationType()
getAnnotationType in interface AnnotationHandlerpublic Class<? extends Annotation>[] getTypeDependencies()
getTypeDependencies in interface AnnotationHandlerprotected HandlerProcessingResult getDefaultProcessedResult()
protected HandlerProcessingResult getDefaultFailedResult()
protected HandlerProcessingResult getInvalidAnnotatedElementHandlerResult(AnnotatedElementHandler aeHandler, AnnotationInfo ainfo) throws AnnotationProcessorException
aeHandler - ainfo - AnnotationProcessorExceptionprotected void log(Level level, AnnotationInfo ainfo, String localizedMessage) throws AnnotationProcessorException
level - ainfo - localizedMessage - AnnotationProcessorExceptionprotected String getInjectionMethodPropertyName(Method method, AnnotationInfo ainfo) throws AnnotationProcessorException
AnnotationProcessorExceptionprotected void validateInjectionMethod(Method method, AnnotationInfo ainfo) throws AnnotationProcessorException
AnnotationProcessorExceptionprotected HandlerProcessingResult getOverallProcessingResult(List<HandlerProcessingResult> resultList)
resultList - protected Class<? extends Annotation>[] getEjbAnnotationTypes()
protected Class<? extends Annotation>[] getEjbAndWebAnnotationTypes()
protected Class<? extends Annotation>[] getWebAnnotationTypes()
protected Class<? extends Annotation>[] getConnectorAnnotationTypes()
Copyright © 2019. All rights reserved.