Class EntityManagerReferencesHandler
- java.lang.Object
-
- com.sun.enterprise.deployment.annotation.handlers.AbstractHandler
-
- com.sun.enterprise.deployment.annotation.handlers.AbstractResourceHandler
-
- com.sun.enterprise.deployment.annotation.handlers.EntityManagerReferenceHandler
-
- com.sun.enterprise.deployment.annotation.handlers.EntityManagerReferencesHandler
-
- All Implemented Interfaces:
AnnotationHandler
@Service public class EntityManagerReferencesHandler extends EntityManagerReferenceHandler
This handler is responsible for handling the jakarta.persistence.PersistenceContexts annotation.
-
-
Field Summary
-
Fields inherited from class com.sun.enterprise.deployment.annotation.handlers.AbstractHandler
ejbProvider, localStrings, logger
-
Fields inherited from interface org.glassfish.apf.AnnotationHandler
ANNOTATION_HANDLER_METADATA
-
-
Constructor Summary
Constructors Constructor Description EntityManagerReferencesHandler()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected HandlerProcessingResult
processAnnotation(AnnotationInfo ainfo, ResourceContainerContext[] rcContexts)
Process a particular annotation which type is the same as the one returned by @see getAnnotationType().-
Methods inherited from class com.sun.enterprise.deployment.annotation.handlers.EntityManagerReferenceHandler
processEmRef
-
Methods inherited from class com.sun.enterprise.deployment.annotation.handlers.AbstractResourceHandler
getTypeDependencies, isAEjbComponentClass, isAWebComponentClass, processAnnotation, validateAnnotatedLifecycleMethod
-
Methods inherited from class com.sun.enterprise.deployment.annotation.handlers.AbstractHandler
getAnnotationType, getConnectorAnnotationTypes, getDefaultFailedResult, getDefaultProcessedResult, getEjbAndWebAnnotationTypes, getEjbAnnotationTypes, getInjectionMethodPropertyName, getInvalidAnnotatedElementHandlerResult, getOverallProcessingResult, getWebAnnotationTypes, log, validateInjectionMethod
-
-
-
-
Method Detail
-
processAnnotation
protected HandlerProcessingResult processAnnotation(AnnotationInfo ainfo, ResourceContainerContext[] rcContexts) throws AnnotationProcessorException
Description copied from class:EntityManagerReferenceHandler
Process a particular annotation which type is the same as the one returned by @see getAnnotationType(). All information pertinent to the annotation and its context is encapsulated in the passed AnnotationInfo instance.- Overrides:
processAnnotation
in classEntityManagerReferenceHandler
- Parameters:
ainfo
- the annotation informationrcContexts
- an array of ResourceContainerContext- Returns:
- HandlerProcessingResult
- Throws:
AnnotationProcessorException
-
-