org.jboss.kernel.plugins.annotations.wb
Class AnnotationsPropertyInjectionAnnotationPlugin

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.InjectableMemberAnnotationPlugin<org.jboss.beans.info.spi.PropertyInfo,C>
                  extended by org.jboss.kernel.plugins.annotations.PropertyAnnotationPlugin<Annotation>
                      extended by org.jboss.kernel.plugins.annotations.wb.AnnotationsPropertyInjectionAnnotationPlugin
All Implemented Interfaces:
Cloneable, Annotation2ValueMetaDataAdapter<Annotation>, AnnotationPlugin<org.jboss.beans.info.spi.PropertyInfo,Annotation>, MetaDataAnnotationPlugin<org.jboss.beans.info.spi.PropertyInfo,Annotation>, PropertyAware, org.jboss.util.JBossInterface

public class AnnotationsPropertyInjectionAnnotationPlugin
extends PropertyAnnotationPlugin<Annotation>

Generic annotations injection metadata value creator.

Author:
Ales Justin

Field Summary
 
Fields inherited from class org.jboss.util.JBossObject
hashCode, log, toString
 
Constructor Summary
AnnotationsPropertyInjectionAnnotationPlugin(Class annotation)
           
 
Method Summary
 ValueMetaData createValueMetaData(Annotation annotation, ValueMetaData previousValue)
          Create value meta data.
protected  PropertyMetaData getPropertyMetaData(org.jboss.beans.info.spi.PropertyInfo info, Annotation annotation, BeanMetaData beanMetaData)
          Get PropertyMetaData instance.
protected  boolean isMetaDataComplete(PropertyMetaData pmd)
          Is property metadata complete.
 
Methods inherited from class org.jboss.kernel.plugins.annotations.PropertyAnnotationPlugin
getName, isElementTypeSupported
 
Methods inherited from class org.jboss.kernel.plugins.annotations.InjectableMemberAnnotationPlugin
createValueMetaData, createValueMetaData, createValueMetaData, createValueMetaData, createValueMetaData, findPropertyMetaData, getProperties, getPropertyMetaData, internalApplyAnnotation, isMetaDataAlreadyPresent
 
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.PropertyAware
applyAnnotation
 
Methods inherited from interface org.jboss.kernel.plugins.annotations.Annotation2ValueMetaDataAdapter
createValueMetaData, getAnnotation
 
Methods inherited from interface org.jboss.kernel.plugins.annotations.MetaDataAnnotationPlugin
applyAnnotation, getAnnotation, getSupportedTypes
 

Constructor Detail

AnnotationsPropertyInjectionAnnotationPlugin

public AnnotationsPropertyInjectionAnnotationPlugin(Class annotation)
Method Detail

isMetaDataComplete

protected boolean isMetaDataComplete(PropertyMetaData pmd)
Description copied from class: InjectableMemberAnnotationPlugin
Is property metadata complete.

Overrides:
isMetaDataComplete in class InjectableMemberAnnotationPlugin<org.jboss.beans.info.spi.PropertyInfo,Annotation>
Parameters:
pmd - the property meta data
Returns:
true if metadata is complete

getPropertyMetaData

protected PropertyMetaData getPropertyMetaData(org.jboss.beans.info.spi.PropertyInfo info,
                                               Annotation annotation,
                                               BeanMetaData beanMetaData)
Description copied from class: InjectableMemberAnnotationPlugin
Get PropertyMetaData instance.

Overrides:
getPropertyMetaData in class InjectableMemberAnnotationPlugin<org.jboss.beans.info.spi.PropertyInfo,Annotation>
Parameters:
info - the info
annotation - the annotation
beanMetaData - the bean metadata
Returns:
get new PropertyMetaData instance

createValueMetaData

public ValueMetaData createValueMetaData(Annotation annotation,
                                         ValueMetaData previousValue)
Description copied from class: InjectableMemberAnnotationPlugin
Create value meta data.

Overrides:
createValueMetaData in class InjectableMemberAnnotationPlugin<org.jboss.beans.info.spi.PropertyInfo,Annotation>
Parameters:
annotation - the annotation
previousValue - previous value
Returns:
value meta data


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