Class EJBHandler
- java.lang.Object
-
- com.sun.enterprise.deployment.annotation.handlers.AbstractHandler
-
- com.sun.enterprise.deployment.annotation.handlers.AbstractResourceHandler
-
- org.glassfish.ejb.deployment.annotation.handlers.EJBHandler
-
- All Implemented Interfaces:
AnnotationHandler
- Direct Known Subclasses:
EJBsHandler
@Service public class EJBHandler extends AbstractResourceHandler
This handler is responsible for handling the jakarta.ejb.EJB- Author:
- Shing Wai Chan
-
-
Field Summary
Fields Modifier and Type Field Description protected static LocalStringManagerImpllocalStrings-
Fields inherited from class com.sun.enterprise.deployment.annotation.handlers.AbstractHandler
ejbProvider, logger
-
Fields inherited from interface org.glassfish.apf.AnnotationHandler
ANNOTATION_HANDLER_METADATA
-
-
Constructor Summary
Constructors Constructor Description EJBHandler()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected HandlerProcessingResultprocessAnnotation(AnnotationInfo ainfo, ResourceContainerContext[] rcContexts)Process a particular annotation which type is the same as the one returned by @see getAnnotationType().protected HandlerProcessingResultprocessEJB(AnnotationInfo ainfo, ResourceContainerContext[] rcContexts, jakarta.ejb.EJB ejbAn)Process a particular annotation whose type is the same as the one returned by @see getAnnotationType().-
Methods inherited from class com.sun.enterprise.deployment.annotation.handlers.AbstractResourceHandler
getTypeDependencies, isAEjbComponentClass, isAWebComponentClass, processAnnotation, validateAnnotatedLifecycleMethod
-
Methods inherited from class com.sun.enterprise.deployment.annotation.handlers.AbstractHandler
getAnnotationType, getConnectorAnnotationTypes, getDefaultFailedResult, getDefaultProcessedResult, getEjbAndWebAnnotationTypes, getEjbAnnotationTypes, getInjectionMethodPropertyName, getInvalidAnnotatedElementHandlerResult, getOverallProcessingResult, getWebAnnotationTypes, log, validateInjectionMethod
-
-
-
-
Field Detail
-
localStrings
protected static final LocalStringManagerImpl localStrings
-
-
Method Detail
-
processAnnotation
protected HandlerProcessingResult processAnnotation(AnnotationInfo ainfo, ResourceContainerContext[] rcContexts) throws AnnotationProcessorException
Process a particular annotation which type is the same as the one returned by @see getAnnotationType(). All information pertinent to the annotation and its context is encapsulated in the passed AnnotationInfo instance.- Specified by:
processAnnotationin classAbstractResourceHandler- Parameters:
ainfo- the annotation informationrcContexts- an array of ResourceContainerContext- Returns:
- HandlerProcessingResult
- Throws:
AnnotationProcessorException
-
processEJB
protected HandlerProcessingResult processEJB(AnnotationInfo ainfo, ResourceContainerContext[] rcContexts, jakarta.ejb.EJB ejbAn) throws AnnotationProcessorException
Process a particular annotation whose type is the same as the one returned by @see getAnnotationType(). All information pertinent to the annotation and its context is encapsulated in the passed AnnotationInfo instance.- Parameters:
ainfo- the annotation informationrcContexts- an array of ResourceContainerContextejbAn-- Returns:
- HandlerProcessingResult
- Throws:
AnnotationProcessorException
-
-