com.sun.enterprise.deployment.annotation.handlers
Class EntityManagerReferenceHandler
java.lang.Object
com.sun.enterprise.deployment.annotation.handlers.AbstractHandler
com.sun.enterprise.deployment.annotation.handlers.AbstractResourceHandler
com.sun.enterprise.deployment.annotation.handlers.EntityManagerReferenceHandler
- All Implemented Interfaces:
- AnnotationHandler
- Direct Known Subclasses:
- EntityManagerReferencesHandler
@Service
public class EntityManagerReferenceHandler
- extends AbstractResourceHandler
This handler is responsible for handling the
javax.persistence.PersistenceUnit annotation.
| Methods inherited from class com.sun.enterprise.deployment.annotation.handlers.AbstractHandler |
getConnectorAnnotationTypes, getDefaultFailedResult, getDefaultProcessedResult, getEjbAndWebAnnotationTypes, getEjbAnnotationTypes, getInjectionMethodPropertyName, getInvalidAnnotatedElementHandlerResult, getOverallProcessingResult, getWebAnnotationTypes, log, validateInjectionMethod |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
EntityManagerReferenceHandler
public EntityManagerReferenceHandler()
getAnnotationType
public java.lang.Class<? extends java.lang.annotation.Annotation> getAnnotationType()
- Returns:
- the annoation type this annotation handler is handling
processAnnotation
protected HandlerProcessingResult processAnnotation(AnnotationInfo ainfo,
ResourceContainerContext[] rcContexts)
throws AnnotationProcessorException
- 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.
- Specified by:
processAnnotation in class AbstractResourceHandler
- Parameters:
ainfo - the annotation informationrcContexts - an array of ResourceContainerContext
- Returns:
- HandlerProcessingResult
- Throws:
AnnotationProcessorException
processEmRef
protected HandlerProcessingResult processEmRef(AnnotationInfo ainfo,
ResourceContainerContext[] rcContexts,
javax.persistence.PersistenceContext emRefAn)
throws AnnotationProcessorException
- 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.
- Throws:
AnnotationProcessorException
Copyright © 2012 GlassFish Community. All Rights Reserved.