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.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
localStringsFields inherited from class com.sun.enterprise.deployment.annotation.handlers.AbstractHandler
ejbProvider, I18N, loggerFields inherited from interface org.glassfish.apf.AnnotationHandler
ANNOTATION_HANDLER_METADATA -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected 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, setBusinessAndHomeInterfacesMethods inherited from class com.sun.enterprise.deployment.annotation.handlers.AbstractHandler
getAnnotationType, getConnectorAnnotationTypes, getDefaultFailedResult, getDefaultProcessedResult, getEjbAndWebAnnotationTypes, getEjbAnnotationTypes, getInjectionMethodPropertyName, getInvalidAnnotatedElementHandlerResult, getOverallProcessingResult, getTypeDependencies, getWebAnnotationTypes, log, validateInjectionMethod
-
Constructor Details
-
MessageDrivenHandler
public MessageDrivenHandler()Creates a new instance of MessageDrivenHandler
-
-
Method Details
-
getAnnotatedName
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.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:
setEjbDescriptorInfoin classorg.glassfish.ejb.deployment.annotation.handlers.AbstractEjbHandler- Parameters:
ejbDesc-ainfo-- Returns:
- HandlerProcessingResult
- Throws:
org.glassfish.apf.AnnotationProcessorException
-