Class MessageDrivenHandler

  • All Implemented Interfaces:
    org.glassfish.apf.AnnotationHandler

    @Service
    public class MessageDrivenHandler
    extends org.glassfish.ejb.deployment.annotation.handlers.AbstractEjbHandler
    This handler is responsible for handling the jakarta.ejb.MessageDriven
    Author:
    Shing Wai Chan
    • Field Summary

      • Fields inherited from class org.glassfish.ejb.deployment.annotation.handlers.AbstractEjbHandler

        localStrings
      • 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
      MessageDrivenHandler()
      Creates a new instance of MessageDrivenHandler
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      protected org.glassfish.ejb.deployment.descriptor.EjbDescriptor createEjbDescriptor​(String elementName, org.glassfish.apf.AnnotationInfo ainfo)
      Create a new EjbDescriptor for a given elementName and AnnotationInfo.
      protected String getAnnotatedName​(Annotation annotation)
      Return the name attribute of given annotation.
      protected boolean isValidEjbDescriptor​(org.glassfish.ejb.deployment.descriptor.EjbDescriptor ejbDesc, Annotation annotation)
      Check if the given EjbDescriptor matches the given Annotation.
      protected org.glassfish.apf.HandlerProcessingResult setEjbDescriptorInfo​(org.glassfish.ejb.deployment.descriptor.EjbDescriptor ejbDesc, org.glassfish.apf.AnnotationInfo ainfo)
      Set Annotation information to Descriptor.
      • Methods inherited from class org.glassfish.ejb.deployment.annotation.handlers.AbstractEjbHandler

        doDescriptionProcessing, doMappedNameProcessing, excludedFromImplementsClause, processAnnotation, setBusinessAndHomeInterfaces
      • Methods inherited from class com.sun.enterprise.deployment.annotation.handlers.AbstractHandler

        getAnnotationType, getConnectorAnnotationTypes, getDefaultFailedResult, getDefaultProcessedResult, getEjbAndWebAnnotationTypes, getEjbAnnotationTypes, getInjectionMethodPropertyName, getInvalidAnnotatedElementHandlerResult, getOverallProcessingResult, getTypeDependencies, getWebAnnotationTypes, log, validateInjectionMethod
    • Constructor Detail

      • MessageDrivenHandler

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

      • getAnnotatedName

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

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

        protected org.glassfish.ejb.deployment.descriptor.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 org.glassfish.ejb.deployment.annotation.handlers.AbstractEjbHandler
        Parameters:
        elementName -
        ainfo -
        Returns:
        a new EjbDescriptor
        Throws:
        org.glassfish.apf.AnnotationProcessorException
      • setEjbDescriptorInfo

        protected org.glassfish.apf.HandlerProcessingResult setEjbDescriptorInfo​(org.glassfish.ejb.deployment.descriptor.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 org.glassfish.ejb.deployment.annotation.handlers.AbstractEjbHandler
        Parameters:
        ejbDesc -
        ainfo -
        Returns:
        HandlerProcessingResult
        Throws:
        org.glassfish.apf.AnnotationProcessorException