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

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.PreDestroyHandler
All Implemented Interfaces:
AnnotationHandler

@Service
public class PreDestroyHandler
extends AbstractResourceHandler

This handler is responsible for handling javax.annotation.PreDestroy


Field Summary
 
Fields inherited from class com.sun.enterprise.deployment.annotation.handlers.AbstractHandler
ejbProvider, localStrings, logger
 
Constructor Summary
PreDestroyHandler()
           
 
Method Summary
 java.lang.Class<? extends java.lang.annotation.Annotation> getAnnotationType()
           
protected  HandlerProcessingResult processAnnotation(AnnotationInfo ainfo, ResourceContainerContext[] rcContexts)
          Process Annotation with given ResourceContainerContexts.
 
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

PreDestroyHandler

public PreDestroyHandler()
Method Detail

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
Description copied from class: AbstractResourceHandler
Process Annotation with given ResourceContainerContexts.

Specified by:
processAnnotation in class AbstractResourceHandler
Throws:
AnnotationProcessorException


Copyright © 2012 GlassFish Community. All Rights Reserved.