org.jboss.webbeans.introspector
Class ForwardingAnnotatedField<T>

java.lang.Object
  extended by org.jboss.webbeans.introspector.ForwardingAnnotatedItem<T,S>
      extended by org.jboss.webbeans.introspector.ForwardingAnnotatedMember<T,java.lang.reflect.Field>
          extended by org.jboss.webbeans.introspector.ForwardingAnnotatedField<T>
All Implemented Interfaces:
AnnotatedField<T>, AnnotatedItem<T,java.lang.reflect.Field>, AnnotatedMember<T,java.lang.reflect.Field>
Direct Known Subclasses:
FieldInjectionPoint, WrappedAnnotatedField

public abstract class ForwardingAnnotatedField<T>
extends ForwardingAnnotatedMember<T,java.lang.reflect.Field>
implements AnnotatedField<T>


Field Summary
 
Fields inherited from interface org.jboss.webbeans.introspector.AnnotatedItem
MAPPED_METAANNOTATIONS
 
Constructor Summary
ForwardingAnnotatedField()
           
 
Method Summary
protected abstract  AnnotatedField<T> delegate()
          Gets the annotated item
 T get(java.lang.Object instance)
           
 java.lang.reflect.Field getAnnotatedField()
          Gets the annotated field
 AnnotatedType<?> getDeclaringClass()
          Gets an abstraction of the declaring class
 java.lang.String getPropertyName()
          Gets the property name of the field
 boolean isTransient()
           
 void set(java.lang.Object declaringInstance, java.lang.Object value)
          Injects an instance
 
Methods inherited from class org.jboss.webbeans.introspector.ForwardingAnnotatedMember
getMember
 
Methods inherited from class org.jboss.webbeans.introspector.ForwardingAnnotatedItem
equals, getActualTypeArguments, getAnnotation, getAnnotationsAsSet, getAnnotationStore, getBindings, getBindingsAsArray, getDeclaredMetaAnnotations, getFlattenedTypeHierarchy, getMetaAnnotations, getMetaAnnotationsAsArray, getName, getRawType, getType, hashCode, isAnnotationPresent, isAssignableFrom, isAssignableFrom, isDeclaredAnnotationPresent, isFinal, isParameterizedType, isProxyable, isPublic, isStatic, toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.jboss.webbeans.introspector.AnnotatedMember
getMember
 
Methods inherited from interface org.jboss.webbeans.introspector.AnnotatedItem
getActualTypeArguments, getAnnotation, getAnnotationsAsSet, getAnnotationStore, getBindings, getBindingsAsArray, getDeclaredMetaAnnotations, getFlattenedTypeHierarchy, getMetaAnnotations, getMetaAnnotationsAsArray, getName, getRawType, getType, isAnnotationPresent, isAssignableFrom, isAssignableFrom, isDeclaredAnnotationPresent, isFinal, isParameterizedType, isProxyable, isPublic, isStatic
 

Constructor Detail

ForwardingAnnotatedField

public ForwardingAnnotatedField()
Method Detail

delegate

protected abstract AnnotatedField<T> delegate()
Description copied from class: ForwardingAnnotatedItem
Gets the annotated item

Specified by:
delegate in class ForwardingAnnotatedMember<T,java.lang.reflect.Field>
Returns:
The annotated item

get

public T get(java.lang.Object instance)
Specified by:
get in interface AnnotatedField<T>

getAnnotatedField

public java.lang.reflect.Field getAnnotatedField()
Description copied from interface: AnnotatedField
Gets the annotated field

Specified by:
getAnnotatedField in interface AnnotatedField<T>
Returns:
The annotated field

getDeclaringClass

public AnnotatedType<?> getDeclaringClass()
Description copied from interface: AnnotatedField
Gets an abstraction of the declaring class

Specified by:
getDeclaringClass in interface AnnotatedField<T>
Specified by:
getDeclaringClass in interface AnnotatedMember<T,java.lang.reflect.Field>
Returns:
The declaring class

getPropertyName

public java.lang.String getPropertyName()
Description copied from interface: AnnotatedField
Gets the property name of the field

Specified by:
getPropertyName in interface AnnotatedField<T>
Returns:
The name

set

public void set(java.lang.Object declaringInstance,
                java.lang.Object value)
         throws java.lang.IllegalArgumentException,
                java.lang.IllegalAccessException
Description copied from interface: AnnotatedField
Injects an instance

Specified by:
set in interface AnnotatedField<T>
Parameters:
declaringInstance - The instance to inject into
value - The value to inject
Throws:
java.lang.IllegalArgumentException
java.lang.IllegalAccessException

isTransient

public boolean isTransient()
Specified by:
isTransient in interface AnnotatedField<T>


Copyright © 2011. All Rights Reserved.