org.jboss.kernel.plugins.annotations
Class StopLifecycleAnnotationPlugin

java.lang.Object
  extended by org.jboss.util.JBossObject
      extended by org.jboss.kernel.plugins.annotations.AbstractAnnotationPlugin<T,C>
          extended by org.jboss.kernel.plugins.annotations.AbstractAdaptersAnnotationPlugin<T,C>
              extended by org.jboss.kernel.plugins.annotations.AbstractParameterAnnotationPlugin<org.jboss.reflect.spi.MethodInfo,C,AbstractLifecycleMetaData>
                  extended by org.jboss.kernel.plugins.annotations.LifecycleParameterAnnotationPlugin<Stop>
                      extended by org.jboss.kernel.plugins.annotations.StopLifecycleAnnotationPlugin
All Implemented Interfaces:
Cloneable, AnnotationPlugin<org.jboss.reflect.spi.MethodInfo,Stop>, org.jboss.util.JBossInterface

public class StopLifecycleAnnotationPlugin
extends LifecycleParameterAnnotationPlugin<Stop>

Stop annotation plugin.

Author:
Ales Justin

Field Summary
 
Fields inherited from class org.jboss.kernel.plugins.annotations.AbstractAdaptersAnnotationPlugin
adapters
 
Fields inherited from class org.jboss.util.JBossObject
hashCode, log, toString
 
Constructor Summary
protected StopLifecycleAnnotationPlugin(Annotation2ValueMetaDataAdapter... adapters)
           
 
Method Summary
protected  void applyLifecycleAnnotation(AbstractLifecycleMetaData lifecycle, Stop annotation)
          Apply lifecycle annotation.
protected  boolean isLifecyclePresent(BeanMetaData beanMetaData)
          Is lifecycle metadata present.
protected  void setLifecycleMetaData(AbstractBeanMetaData beanMetaData, AbstractLifecycleMetaData lifecycle)
          Set lifecycle metadata.
 
Methods inherited from class org.jboss.kernel.plugins.annotations.LifecycleParameterAnnotationPlugin
checkAnnotatedInfo, createLifecycleMetaData, createParametrizedMetaData, getParameters, handleParameterlessInfo, isMetaDataAlreadyPresent, setParameterizedMetaData
 
Methods inherited from class org.jboss.kernel.plugins.annotations.AbstractParameterAnnotationPlugin
createParametrizedMetaData, createParametrizedMetaData, createParametrizedMetaData, handleParameterlessInfo, internalApplyAnnotation, isElementTypeSupported, setParameterizedMetaData
 
Methods inherited from class org.jboss.kernel.plugins.annotations.AbstractAnnotationPlugin
applyAnnotation, cleanAnnotation, getAnnotation, getSupportedTypes, internalApplyAnnotation, internalApplyAnnotation, internalCleanAnnotation, isAttributePresent, isMetaDataAlreadyPresent, toShortString, toString
 
Methods inherited from class org.jboss.util.JBossObject
cacheGetHashCode, cacheToString, clone, equals, flushJBossObjectCache, getClassShortName, getHashCode, hashCode, list, notEqual, toShortString, toString, toStringImplementation
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

StopLifecycleAnnotationPlugin

protected StopLifecycleAnnotationPlugin(Annotation2ValueMetaDataAdapter... adapters)
Method Detail

isLifecyclePresent

protected boolean isLifecyclePresent(BeanMetaData beanMetaData)
Description copied from class: LifecycleParameterAnnotationPlugin
Is lifecycle metadata present.

Specified by:
isLifecyclePresent in class LifecycleParameterAnnotationPlugin<Stop>
Parameters:
beanMetaData - the bean metadata
Returns:
true if lifecycle metadata exists

applyLifecycleAnnotation

protected void applyLifecycleAnnotation(AbstractLifecycleMetaData lifecycle,
                                        Stop annotation)
Description copied from class: LifecycleParameterAnnotationPlugin
Apply lifecycle annotation.

Specified by:
applyLifecycleAnnotation in class LifecycleParameterAnnotationPlugin<Stop>
Parameters:
lifecycle - lifecycle metadata
annotation - the annotation

setLifecycleMetaData

protected void setLifecycleMetaData(AbstractBeanMetaData beanMetaData,
                                    AbstractLifecycleMetaData lifecycle)
Description copied from class: LifecycleParameterAnnotationPlugin
Set lifecycle metadata.

Specified by:
setLifecycleMetaData in class LifecycleParameterAnnotationPlugin<Stop>
Parameters:
beanMetaData - the bean metadata
lifecycle - the lifecycle metadata


Copyright ? 2007 JBoss Inc.. All Rights Reserved.