org.jboss.kernel.plugins.annotations
Class FieldAnnotationPlugin<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.reflect.spi.FieldInfo,C>
                  extended by org.jboss.kernel.plugins.annotations.FieldAnnotationPlugin<C>
Type Parameters:
C - annotation type
All Implemented Interfaces:
Cloneable, AnnotationPlugin<org.jboss.reflect.spi.FieldInfo,C>, MetaDataAnnotationPlugin<org.jboss.reflect.spi.FieldInfo,C>, org.jboss.util.JBossInterface
Direct Known Subclasses:
AnnotationsFieldInjectionAnnotationPlugin, InjectFieldAnnotationPlugin, ValueFactoryFieldAnnotationPlugin, WBInjectFieldAnnotationPlugin

public abstract class FieldAnnotationPlugin<C extends Annotation>
extends InjectableMemberAnnotationPlugin<org.jboss.reflect.spi.FieldInfo,C>

Field annotation plugin.

Author:
Ales Justin

Field Summary
 
Fields inherited from class org.jboss.util.JBossObject
hashCode, log, toString
 
Constructor Summary
protected FieldAnnotationPlugin(Class<C> annotation)
           
 
Method Summary
protected  String getName(org.jboss.reflect.spi.FieldInfo 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.MetaDataAnnotationPlugin
applyAnnotation, getAnnotation, getSupportedTypes
 

Constructor Detail

FieldAnnotationPlugin

protected FieldAnnotationPlugin(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.reflect.spi.FieldInfo,C extends Annotation>
Parameters:
type - the annotation element type
Returns:
true if element supported

getName

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

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


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