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() |
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
AnnotationProcessorExceptionprotected String getInjectionMethodPropertyName(Method method, AnnotationInfo ainfo) throws AnnotationProcessorException
AnnotationProcessorExceptionprotected void validateInjectionMethod(Method method, AnnotationInfo ainfo) throws AnnotationProcessorException
AnnotationProcessorExceptionprotected HandlerProcessingResult getOverallProcessingResult(List<HandlerProcessingResult> resultList)
protected Class<? extends Annotation>[] getEjbAnnotationTypes()
protected Class<? extends Annotation>[] getEjbAndWebAnnotationTypes()
protected Class<? extends Annotation>[] getWebAnnotationTypes()
protected Class<? extends Annotation>[] getConnectorAnnotationTypes()
Copyright © 2017. All rights reserved.