org.jboss.kernel.plugins.annotations
Class ConstructorValueAnnotationPlugin<C extends Annotation>

java.lang.Object
  extended by org.jboss.util.JBossObject
      extended by org.jboss.kernel.plugins.annotations.AbstractAnnotationPlugin<org.jboss.reflect.spi.ClassInfo,C>
          extended by org.jboss.kernel.plugins.annotations.ClassAnnotationPlugin<C>
              extended by org.jboss.kernel.plugins.annotations.ConstructorValueAnnotationPlugin<C>
Type Parameters:
C - annotation type
All Implemented Interfaces:
Cloneable, Annotation2ValueMetaDataAdapter<C>, AnnotationPlugin<org.jboss.reflect.spi.ClassInfo,C>, org.jboss.util.JBossInterface
Direct Known Subclasses:
ArrayConstructorValueAnnotationPlugin, CollectionConstructorValueAnnotationPlugin, InjectConstructorValueAnnotationPlugin, ListConstructorValueAnnotationPlugin, MapConstructorValueAnnotationPlugin, SetConstructorValueAnnotationPlugin, StringValueConstructorValueAnnotationPlugin, ValueFactoryConstructorValueAnnotationPlugin

public abstract class ConstructorValueAnnotationPlugin<C extends Annotation>
extends ClassAnnotationPlugin<C>
implements Annotation2ValueMetaDataAdapter<C>

Constructor value annotation plugin.

Author:
Ales Justin

Field Summary
 
Fields inherited from class org.jboss.util.JBossObject
hashCode, log, toString
 
Constructor Summary
protected ConstructorValueAnnotationPlugin(Class<C> annotation)
           
 
Method Summary
protected  List<? extends MetaDataVisitorNode> internalApplyAnnotation(org.jboss.reflect.spi.ClassInfo info, C annotation, KernelControllerContext context)
          Apply annotation since it's not present.
protected  boolean isMetaDataAlreadyPresent(org.jboss.reflect.spi.ClassInfo info, C annotation, BeanMetaData beanMetaData)
          Is meta data already present.
 
Methods inherited from class org.jboss.kernel.plugins.annotations.ClassAnnotationPlugin
isElementTypeSupported
 
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
 
Methods inherited from interface org.jboss.kernel.plugins.annotations.Annotation2ValueMetaDataAdapter
createValueMetaData, getAnnotation
 

Constructor Detail

ConstructorValueAnnotationPlugin

protected ConstructorValueAnnotationPlugin(Class<C> annotation)
Method Detail

isMetaDataAlreadyPresent

protected boolean isMetaDataAlreadyPresent(org.jboss.reflect.spi.ClassInfo info,
                                           C annotation,
                                           BeanMetaData beanMetaData)
Description copied from class: AbstractAnnotationPlugin
Is meta data already present.

Overrides:
isMetaDataAlreadyPresent in class AbstractAnnotationPlugin<org.jboss.reflect.spi.ClassInfo,C extends Annotation>
Parameters:
info - the info
annotation - the annotation
beanMetaData - the bean meta data
Returns:
true if meta data already present

internalApplyAnnotation

protected List<? extends MetaDataVisitorNode> internalApplyAnnotation(org.jboss.reflect.spi.ClassInfo info,
                                                                      C annotation,
                                                                      KernelControllerContext context)
                                                               throws Throwable
Description copied from class: AbstractAnnotationPlugin
Apply annotation since it's not present.

Overrides:
internalApplyAnnotation in class AbstractAnnotationPlugin<org.jboss.reflect.spi.ClassInfo,C extends Annotation>
Parameters:
info - the info
annotation - the annotation
context - the context
Returns:
list of added meta data visitor nodes
Throws:
Throwable - for any error


Copyright ? 2007 JBoss Inc.. All Rights Reserved.