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
This handler is responsible for handling the jakarta.ejb.Stateful
- 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 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(EjbDescriptor ejbDesc, Annotation annotation) Check if the given EjbDescriptor matches the given Annotation.protected org.glassfish.apf.HandlerProcessingResultsetEjbDescriptorInfo(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
-
StatefulHandler
public StatefulHandler()Creates a new instance of StatefulHandler
-
-
Method Details
-
getAnnotatedName
Return the name attribute of given annotation.- Specified by:
getAnnotatedNamein classAbstractEjbHandler- Parameters:
annotation-- Returns:
- name
-
isValidEjbDescriptor
Check if the given EjbDescriptor matches the given Annotation.- Specified by:
isValidEjbDescriptorin classAbstractEjbHandler- 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:
createEjbDescriptorin classAbstractEjbHandler- 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:
setEjbDescriptorInfoin classAbstractEjbHandler- Parameters:
ejbDesc-ainfo-- Returns:
- HandlerProcessingResult
- Throws:
org.glassfish.apf.AnnotationProcessorException
-