org.glassfish.ejb.deployment.annotation.handlers
Class EJBHandler

java.lang.Object
  extended by com.sun.enterprise.deployment.annotation.handlers.AbstractHandler
      extended by com.sun.enterprise.deployment.annotation.handlers.AbstractResourceHandler
          extended by org.glassfish.ejb.deployment.annotation.handlers.EJBHandler
All Implemented Interfaces:
AnnotationHandler
Direct Known Subclasses:
EJBsHandler

@Service
public class EJBHandler
extends AbstractResourceHandler

This handler is responsible for handling the javax.ejb.EJB

Author:
Shing Wai Chan

Field Summary
 
Fields inherited from class com.sun.enterprise.deployment.annotation.handlers.AbstractHandler
ejbProvider, localStrings, logger
 
Constructor Summary
EJBHandler()
           
 
Method Summary
 Class<? extends 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().
protected  HandlerProcessingResult processEJB(AnnotationInfo ainfo, ResourceContainerContext[] rcContexts, EJB ejbAn)
          Process a particular annotation whose type is the same as the one returned by @see getAnnotationType().
 
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

EJBHandler

public EJBHandler()
Method Detail

getAnnotationType

public Class<? extends 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 information
rcContexts - an array of ResourceContainerContext
Returns:
HandlerProcessingResult
Throws:
AnnotationProcessorException

processEJB

protected HandlerProcessingResult processEJB(AnnotationInfo ainfo,
                                             ResourceContainerContext[] rcContexts,
                                             EJB ejbAn)
                                      throws AnnotationProcessorException
Process a particular annotation whose 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.

Parameters:
ainfo - the annotation information
rcContexts - an array of ResourceContainerContext
ejbAn -
Returns:
HandlerProcessingResult
Throws:
AnnotationProcessorException


Copyright © 2012 GlassFish Community. All Rights Reserved.