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

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<C>
Type Parameters:
C - annotation type
All Implemented Interfaces:
Cloneable, Annotation2ValueMetaDataAdapter<C>, AnnotationPlugin<org.jboss.beans.info.spi.PropertyInfo,C>, MetaDataAnnotationPlugin<org.jboss.beans.info.spi.PropertyInfo,C>, PropertyAware, org.jboss.util.JBossInterface
Direct Known Subclasses:
AnnotationsPropertyInjectionAnnotationPlugin, CollectionsAnnotationPlugin, InjectAnnotationPlugin, JavaBeanValueAnnotationPlugin, NullValueAnnotationPlugin, SearchPropertyAnnotationPlugin, StringValueAnnotationPlugin, ThisValueAnnotationPlugin, ValueFactoryAnnotationPlugin, WBInjectAnnotationPlugin

public abstract class PropertyAnnotationPlugin<C extends Annotation>
extends InjectableMemberAnnotationPlugin<org.jboss.beans.info.spi.PropertyInfo,C>
implements PropertyAware, Annotation2ValueMetaDataAdapter<C>

Abstract property annotation plugin.

Author:
Ales Justin

Field Summary
 
Fields inherited from class org.jboss.util.JBossObject
hashCode, log, toString
 
Constructor Summary
protected PropertyAnnotationPlugin(Class<C> annotation)
           
 
Method Summary
protected  String getName(org.jboss.beans.info.spi.PropertyInfo info)
          Get the annotated info name.
protected  boolean isElementTypeSupported(ElementType type)
          Is type supported by plugin.
 
Methods inherited from class org.jboss.kernel.plugins.annotations.InjectableMemberAnnotationPlugin
createValueMetaData, createValueMetaData, createValueMetaData, createValueMetaData, createValueMetaData, createValueMetaData, findPropertyMetaData, getProperties, getPropertyMetaData, getPropertyMetaData, internalApplyAnnotation, isMetaDataAlreadyPresent, isMetaDataComplete
 
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

PropertyAnnotationPlugin

protected PropertyAnnotationPlugin(Class<C> annotation)
Method Detail

isElementTypeSupported

protected boolean isElementTypeSupported(ElementType type)
Description copied from class: BaseMetaDataAnnotationPlugin
Is type supported by plugin.

Specified by:
isElementTypeSupported in class BaseMetaDataAnnotationPlugin<org.jboss.beans.info.spi.PropertyInfo,C extends Annotation>
Parameters:
type - the annotation element type
Returns:
true if element supported

getName

protected String getName(org.jboss.beans.info.spi.PropertyInfo info)
Description copied from class: InjectableMemberAnnotationPlugin
Get the annotated info name.

Specified by:
getName in class InjectableMemberAnnotationPlugin<org.jboss.beans.info.spi.PropertyInfo,C extends Annotation>
Parameters:
info - the info
Returns:
info's name


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