Class StatefulHandler

java.lang.Object
com.sun.enterprise.deployment.annotation.handlers.AbstractHandler
org.glassfish.ejb.deployment.annotation.handlers.AbstractEjbHandler
org.glassfish.ejb.deployment.annotation.handlers.StatefulHandler
All Implemented Interfaces:
org.glassfish.apf.AnnotationHandler

@Service public class StatefulHandler extends AbstractEjbHandler
This handler is responsible for handling the jakarta.ejb.Stateful
Author:
Shing Wai Chan
  • Constructor Details

    • StatefulHandler

      public StatefulHandler()
      Creates a new instance of StatefulHandler
  • Method Details

    • getAnnotatedName

      protected String getAnnotatedName(Annotation annotation)
      Return the name attribute of given annotation.
      Specified by:
      getAnnotatedName in class AbstractEjbHandler
      Parameters:
      annotation -
      Returns:
      name
    • isValidEjbDescriptor

      protected boolean isValidEjbDescriptor(EjbDescriptor ejbDesc, Annotation annotation)
      Check if the given EjbDescriptor matches the given Annotation.
      Specified by:
      isValidEjbDescriptor in class AbstractEjbHandler
      Parameters:
      ejbDesc -
      annotation -
      Returns:
      boolean check for validity of EjbDescriptor
    • createEjbDescriptor

      protected EjbDescriptor createEjbDescriptor(String elementName, org.glassfish.apf.AnnotationInfo ainfo) throws org.glassfish.apf.AnnotationProcessorException
      Create a new EjbDescriptor for a given elementName and AnnotationInfo.
      Specified by:
      createEjbDescriptor in class AbstractEjbHandler
      Parameters:
      elementName -
      ainfo -
      Returns:
      a new EjbDescriptor
      Throws:
      org.glassfish.apf.AnnotationProcessorException
    • setEjbDescriptorInfo

      protected org.glassfish.apf.HandlerProcessingResult setEjbDescriptorInfo(EjbDescriptor ejbDesc, org.glassfish.apf.AnnotationInfo ainfo) throws org.glassfish.apf.AnnotationProcessorException
      Set Annotation information to Descriptor. This method will also be invoked for an existing descriptor with annotation as user may not specific a complete xml.
      Specified by:
      setEjbDescriptorInfo in class AbstractEjbHandler
      Parameters:
      ejbDesc -
      ainfo -
      Returns:
      HandlerProcessingResult
      Throws:
      org.glassfish.apf.AnnotationProcessorException