Class 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 Detail

      • StatefulHandler

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

      • 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