com.sun.enterprise.deployment.annotation.handlers
Class EntityManagerFactoryReferencesHandler

java.lang.Object
  extended by com.sun.enterprise.deployment.annotation.handlers.AbstractHandler
      extended by com.sun.enterprise.deployment.annotation.handlers.AbstractResourceHandler
          extended by com.sun.enterprise.deployment.annotation.handlers.EntityManagerFactoryReferenceHandler
              extended by com.sun.enterprise.deployment.annotation.handlers.EntityManagerFactoryReferencesHandler
All Implemented Interfaces:
AnnotationHandler

@Service
public class EntityManagerFactoryReferencesHandler
extends EntityManagerFactoryReferenceHandler

This handler is responsible for handling the javax.persistence.PersistenceUnits annotation.


Field Summary
 
Fields inherited from class com.sun.enterprise.deployment.annotation.handlers.AbstractHandler
ejbProvider, localStrings, logger
 
Constructor Summary
EntityManagerFactoryReferencesHandler()
           
 
Method Summary
 java.lang.Class<? extends java.lang.annotation.Annotation> getAnnotationType()
           
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, processAnnotation
 
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
 

Constructor Detail

EntityManagerFactoryReferencesHandler

public EntityManagerFactoryReferencesHandler()
Method Detail

getAnnotationType

public java.lang.Class<? extends java.lang.annotation.Annotation> getAnnotationType()
Specified by:
getAnnotationType in interface AnnotationHandler
Overrides:
getAnnotationType in class EntityManagerFactoryReferenceHandler
Returns:
the annoation type this annotation handler is handling

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 class EntityManagerFactoryReferenceHandler
Parameters:
ainfo - the annotation information
rcContexts - an array of ResourceContainerContext
Throws:
AnnotationProcessorException


Copyright © 2012 GlassFish Community. All Rights Reserved.