org.jboss.kernel.plugins.annotations
Class StartLifecycleAnnotationPlugin

java.lang.Object
  extended by org.jboss.util.JBossObject
      extended by org.jboss.kernel.plugins.annotations.BaseMetaDataAnnotationPlugin<T,C>
          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,P>
                      extended by org.jboss.kernel.plugins.annotations.AbstractMethodParameterAnnotationPlugin<C,AbstractLifecycleMetaData>
                          extended by org.jboss.kernel.plugins.annotations.LifecycleParameterAnnotationPlugin<Start>
                              extended by org.jboss.kernel.plugins.annotations.StartLifecycleAnnotationPlugin
All Implemented Interfaces:
Cloneable, AnnotationPlugin<org.jboss.reflect.spi.MethodInfo,Start>, MetaDataAnnotationPlugin<org.jboss.reflect.spi.MethodInfo,Start>, org.jboss.util.JBossInterface

public class StartLifecycleAnnotationPlugin
extends LifecycleParameterAnnotationPlugin<Start>

Start 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
StartLifecycleAnnotationPlugin(Set<Annotation2ValueMetaDataAdapter<? extends Annotation>> adapters)
           
 
Method Summary
protected  void applyLifecycleAnnotation(AbstractLifecycleMetaData lifecycle, Start 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.AbstractMethodParameterAnnotationPlugin
createParametersSignature
 
Methods inherited from class org.jboss.kernel.plugins.annotations.AbstractParameterAnnotationPlugin
createParametrizedMetaData, createParametrizedMetaData, internalApplyAnnotation, isElementTypeSupported
 
Methods inherited from class org.jboss.kernel.plugins.annotations.AbstractAnnotationPlugin
applyAnnotation, checkIfNotAbstractBeanMetaDataSpecific, cleanAnnotation, internalApplyAnnotation, internalApplyAnnotation, internalCleanAnnotation, isMetaDataAlreadyPresent
 
Methods inherited from class org.jboss.kernel.plugins.annotations.BaseMetaDataAnnotationPlugin
applyAnnotation, getAnnotation, getSupportedTypes, isAttributePresent, isAttributePresent, isCleanup, isCleanupOnly, 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
 
Methods inherited from interface org.jboss.kernel.plugins.annotations.MetaDataAnnotationPlugin
applyAnnotation, getAnnotation, getSupportedTypes
 

Constructor Detail

StartLifecycleAnnotationPlugin

public StartLifecycleAnnotationPlugin(Set<Annotation2ValueMetaDataAdapter<? extends Annotation>> adapters)
Method Detail

isLifecyclePresent

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

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

applyLifecycleAnnotation

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

Specified by:
applyLifecycleAnnotation in class LifecycleParameterAnnotationPlugin<Start>
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<Start>
Parameters:
beanMetaData - the bean metadata
lifecycle - the lifecycle metadata


Copyright © 2009 JBoss, a division of Red Hat, Inc.. All Rights Reserved.