Class MessageDrivenHandler
- java.lang.Object
-
- com.sun.enterprise.deployment.annotation.handlers.AbstractHandler
-
- org.glassfish.ejb.deployment.annotation.handlers.AbstractEjbHandler
-
- org.glassfish.ejb.mdb.deployment.annotation.handlers.MessageDrivenHandler
-
- All Implemented Interfaces:
org.glassfish.apf.AnnotationHandler
@Service public class MessageDrivenHandler extends org.glassfish.ejb.deployment.annotation.handlers.AbstractEjbHandlerThis handler is responsible for handling the jakarta.ejb.MessageDriven- Author:
- Shing Wai Chan
-
-
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.EjbDescriptorcreateEjbDescriptor(String elementName, org.glassfish.apf.AnnotationInfo ainfo)Create a new EjbDescriptor for a given elementName and AnnotationInfo.protected StringgetAnnotatedName(Annotation annotation)Return the name attribute of given annotation.protected booleanisValidEjbDescriptor(org.glassfish.ejb.deployment.descriptor.EjbDescriptor ejbDesc, Annotation annotation)Check if the given EjbDescriptor matches the given Annotation.protected org.glassfish.apf.HandlerProcessingResultsetEjbDescriptorInfo(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
-
-
-
-
Method Detail
-
getAnnotatedName
protected String getAnnotatedName(Annotation annotation)
Return the name attribute of given annotation.- Specified by:
getAnnotatedNamein classorg.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:
isValidEjbDescriptorin classorg.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:
createEjbDescriptorin classorg.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.AnnotationProcessorExceptionSet 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:
setEjbDescriptorInfoin classorg.glassfish.ejb.deployment.annotation.handlers.AbstractEjbHandler- Parameters:
ejbDesc-ainfo-- Returns:
- HandlerProcessingResult
- Throws:
org.glassfish.apf.AnnotationProcessorException
-
-