Class EntityManagerFactoryReferencesHandler
- java.lang.Object
-
- com.sun.enterprise.deployment.annotation.handlers.AbstractHandler
-
- com.sun.enterprise.deployment.annotation.handlers.AbstractResourceHandler
-
- com.sun.enterprise.deployment.annotation.handlers.EntityManagerFactoryReferenceHandler
-
- com.sun.enterprise.deployment.annotation.handlers.EntityManagerFactoryReferencesHandler
-
- All Implemented Interfaces:
AnnotationHandler
@Service public class EntityManagerFactoryReferencesHandler extends EntityManagerFactoryReferenceHandler
This handler is responsible for handling the jakarta.persistence.PersistenceUnits 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 EntityManagerFactoryReferencesHandler()
-
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.EntityManagerFactoryReferenceHandler
processEmfRef
-
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:EntityManagerFactoryReferenceHandler
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 classEntityManagerFactoryReferenceHandler
- Parameters:
ainfo
- the annotation informationrcContexts
- an array of ResourceContainerContext- Returns:
- Throws:
AnnotationProcessorException
-
-