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:
org.glassfish.apf.AnnotationHandler
Direct Known Subclasses:
EJBsHandler

@Service public class EJBHandler extends com.sun.enterprise.deployment.annotation.handlers.AbstractResourceHandler
This handler is responsible for handling the jakarta.ejb.EJB
Author:
Shing Wai Chan
  • Field Summary

    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
     
  • Method Summary

    Modifier and Type
    Method
    Description
    protected org.glassfish.apf.HandlerProcessingResult
    processAnnotation(org.glassfish.apf.AnnotationInfo ainfo, com.sun.enterprise.deployment.annotation.context.ResourceContainerContext[] rcContexts)
    Process a particular annotation which type is the same as the one returned by @see getAnnotationType().
    protected org.glassfish.apf.HandlerProcessingResult
    processEJB(org.glassfish.apf.AnnotationInfo ainfo, com.sun.enterprise.deployment.annotation.context.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

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • EJBHandler

      public EJBHandler()
  • Method Details

    • processAnnotation

      protected org.glassfish.apf.HandlerProcessingResult processAnnotation(org.glassfish.apf.AnnotationInfo ainfo, com.sun.enterprise.deployment.annotation.context.ResourceContainerContext[] rcContexts) throws org.glassfish.apf.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:
      processAnnotation in class com.sun.enterprise.deployment.annotation.handlers.AbstractResourceHandler
      Parameters:
      ainfo - the annotation information
      rcContexts - an array of ResourceContainerContext
      Returns:
      HandlerProcessingResult
      Throws:
      org.glassfish.apf.AnnotationProcessorException
    • processEJB

      protected org.glassfish.apf.HandlerProcessingResult processEJB(org.glassfish.apf.AnnotationInfo ainfo, com.sun.enterprise.deployment.annotation.context.ResourceContainerContext[] rcContexts, jakarta.ejb.EJB ejbAn) throws org.glassfish.apf.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 information
      rcContexts - an array of ResourceContainerContext
      ejbAn -
      Returns:
      HandlerProcessingResult
      Throws:
      org.glassfish.apf.AnnotationProcessorException