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

java.lang.Object
  extended by com.sun.enterprise.deployment.annotation.handlers.AbstractHandler
      extended by org.glassfish.ejb.deployment.annotation.handlers.AbstractAttributeHandler
          extended by org.glassfish.ejb.deployment.annotation.handlers.AsynchronousHandler
All Implemented Interfaces:
PostProcessor<EjbContext>, AnnotationHandler

@Service
public class AsynchronousHandler
extends AbstractAttributeHandler
implements PostProcessor<EjbContext>

This handler is responsible for handling the javax.ejb.Asynchronous annotation on the Bean class.

Author:
Marina Vatkina

Field Summary
 
Fields inherited from class com.sun.enterprise.deployment.annotation.handlers.AbstractHandler
ejbProvider, localStrings, logger
 
Constructor Summary
AsynchronousHandler()
           
 
Method Summary
 Class<? extends Annotation> getAnnotationType()
           
 Class<? extends Annotation>[] getTypeDependencies()
           
 void postProcessAnnotation(AnnotationInfo ainfo, EjbContext ejbContext)
          Set the default value (from class type annotation) on all methods that don't have a value.
protected  HandlerProcessingResult processAnnotation(AnnotationInfo ainfo, EjbContext[] ejbContexts)
          Process Annotation with given EjbContexts.
protected  boolean supportTypeInheritance()
          This indicates whether the annotation type should be processed for type level in super-class.
 
Methods inherited from class org.glassfish.ejb.deployment.annotation.handlers.AbstractAttributeHandler
isDelegatee, processAnnotation, 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

AsynchronousHandler

public AsynchronousHandler()
Method Detail

getAnnotationType

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

processAnnotation

protected HandlerProcessingResult processAnnotation(AnnotationInfo ainfo,
                                                    EjbContext[] ejbContexts)
                                             throws AnnotationProcessorException
Description copied from class: AbstractAttributeHandler
Process Annotation with given EjbContexts.

Specified by:
processAnnotation in class AbstractAttributeHandler
Returns:
HandlerProcessingResult
Throws:
AnnotationProcessorException

getTypeDependencies

public Class<? extends Annotation>[] getTypeDependencies()
Specified by:
getTypeDependencies in interface AnnotationHandler
Overrides:
getTypeDependencies in class AbstractHandler
Returns:
an array of annotation types this annotation handler would require to be processed (if present) before it processes it's own annotation type.

supportTypeInheritance

protected boolean supportTypeInheritance()
Description copied from class: AbstractAttributeHandler
This indicates whether the annotation type should be processed for type level in super-class.

Overrides:
supportTypeInheritance in class AbstractAttributeHandler

postProcessAnnotation

public void postProcessAnnotation(AnnotationInfo ainfo,
                                  EjbContext ejbContext)
                           throws AnnotationProcessorException
Set the default value (from class type annotation) on all methods that don't have a value. Class type annotation applies to all EJB 3.x Local/Remote/no-interface views in which that business method is exposed for that bean.

Specified by:
postProcessAnnotation in interface PostProcessor<EjbContext>
Throws:
AnnotationProcessorException


Copyright © 2012 GlassFish Community. All Rights Reserved.