org.jboss.webbeans.introspector
Interface AnnotatedField<T>

All Superinterfaces:
AnnotatedItem<T,java.lang.reflect.Field>, AnnotatedMember<T,java.lang.reflect.Field>
All Known Implementing Classes:
AnnotatedFieldImpl, FieldInjectionPoint, ForwardingAnnotatedField, WrappedAnnotatedField

public interface AnnotatedField<T>
extends AnnotatedMember<T,java.lang.reflect.Field>

AnnotatedField provides a uniform access to the annotations on an annotated field

Author:
Pete Muir

Field Summary
 
Fields inherited from interface org.jboss.webbeans.introspector.AnnotatedItem
MAPPED_METAANNOTATIONS
 
Method Summary
 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 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
 

Method Detail

getAnnotatedField

java.lang.reflect.Field getAnnotatedField()
Gets the annotated field

Returns:
The annotated field

set

void set(java.lang.Object declaringInstance,
         java.lang.Object value)
         throws java.lang.IllegalArgumentException,
                java.lang.IllegalAccessException
Injects an instance

Parameters:
declaringInstance - The instance to inject into
value - The value to inject
Throws:
java.lang.IllegalArgumentException
java.lang.IllegalAccessException

get

T get(java.lang.Object instance)

getDeclaringClass

AnnotatedType<?> getDeclaringClass()
Gets an abstraction of the declaring class

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

getPropertyName

java.lang.String getPropertyName()
Gets the property name of the field

Returns:
The name

isTransient

boolean isTransient()


Copyright © 2011. All Rights Reserved.