|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jboss.webbeans.introspector.jlr.AbstractAnnotatedItem<T,S>
org.jboss.webbeans.introspector.jlr.AbstractAnnotatedMember<T,java.lang.reflect.Field>
org.jboss.webbeans.introspector.jlr.AnnotatedFieldImpl<T>
T - public class AnnotatedFieldImpl<T>
Represents an annotated field This class is immutable, and therefore threadsafe
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class org.jboss.webbeans.introspector.jlr.AbstractAnnotatedMember |
|---|
AbstractAnnotatedMember.AnnotatedParameterMap |
| Field Summary |
|---|
| Fields inherited from interface org.jboss.webbeans.introspector.AnnotatedItem |
|---|
MAPPED_METAANNOTATIONS |
| Constructor Summary | |
|---|---|
AnnotatedFieldImpl(java.lang.reflect.Field field,
AnnotatedType<?> declaringClass)
Constructor Initializes the superclass with the built annotation map and detects the type arguments |
|
| Method Summary | |
|---|---|
T |
get(java.lang.Object instance)
|
java.lang.reflect.Type[] |
getActualTypeArguments()
Gets the actual type arguments |
java.lang.reflect.Field |
getAnnotatedField()
Gets the underlying field |
AnnotatedType<?> |
getDeclaringClass()
Gets the abstracted declaring class |
java.lang.reflect.Field |
getDelegate()
|
java.lang.String |
getPropertyName()
Gets the property name |
java.lang.Class<T> |
getType()
Gets the type |
void |
set(java.lang.Object instance,
java.lang.Object value)
Injects an instance |
void |
setOnInstance(java.lang.Object instance,
java.lang.Object value)
Injects into the field using the value provided by the manager Unlike #set(Object, Manager) the field injected into is
discovered from the declaring instance. |
java.lang.String |
toString()
Gets a string representation of the field |
| Methods inherited from class org.jboss.webbeans.introspector.jlr.AbstractAnnotatedMember |
|---|
getMember, getName, getValue, isFinal, isPublic, isStatic, isTransient |
| Methods inherited from class org.jboss.webbeans.introspector.jlr.AbstractAnnotatedItem |
|---|
equals, getAnnotation, getAnnotationsAsSet, getAnnotationStore, getBindingTypes, getBindingTypesAsArray, getDeclaredMetaAnnotations, getMetaAnnotations, getMetaAnnotationsAsArray, hashCode, isAnnotationPresent, isAssignableFrom, isAssignableFrom, isDeclaredAnnotationPresent, isProxyable |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface org.jboss.webbeans.introspector.AnnotatedField |
|---|
isTransient |
| Methods inherited from interface org.jboss.webbeans.introspector.AnnotatedMember |
|---|
getMember |
| Methods inherited from interface org.jboss.webbeans.introspector.AnnotatedItem |
|---|
getAnnotation, getAnnotationsAsSet, getAnnotationStore, getBindingTypes, getBindingTypesAsArray, getDeclaredMetaAnnotations, getMetaAnnotations, getMetaAnnotationsAsArray, getName, isAnnotationPresent, isAssignableFrom, isAssignableFrom, isDeclaredAnnotationPresent, isFinal, isProxyable, isPublic, isStatic |
| Constructor Detail |
|---|
public AnnotatedFieldImpl(java.lang.reflect.Field field,
AnnotatedType<?> declaringClass)
field - The actual fielddeclaringClass - The abstraction of the declaring class| Method Detail |
|---|
public java.lang.reflect.Field getAnnotatedField()
getAnnotatedField in interface AnnotatedField<T>public java.lang.reflect.Field getDelegate()
getDelegate in class AbstractAnnotatedItem<T,java.lang.reflect.Field>public java.lang.Class<T> getType()
getType in interface AnnotatedItem<T,java.lang.reflect.Field>public java.lang.reflect.Type[] getActualTypeArguments()
getActualTypeArguments in interface AnnotatedItem<T,java.lang.reflect.Field>AnnotatedItem.getActualTypeArguments()
public void set(java.lang.Object instance,
java.lang.Object value)
throws java.lang.IllegalArgumentException,
java.lang.IllegalAccessException
AnnotatedField
set in interface AnnotatedField<T>instance - The instance to inject intovalue - The value to inject
java.lang.IllegalArgumentException
java.lang.IllegalAccessException
public void setOnInstance(java.lang.Object instance,
java.lang.Object value)
throws java.lang.IllegalArgumentException,
java.lang.SecurityException,
java.lang.IllegalAccessException,
java.lang.NoSuchFieldException
AnnotatedField#set(Object, Manager) the field injected into is
discovered from the declaring instance. This is slower, but safe to use
with proxies.
setOnInstance in interface AnnotatedField<T>instance - The instance to inject intovalue - The value to inject
java.lang.IllegalArgumentException
java.lang.SecurityException
java.lang.IllegalAccessException
java.lang.NoSuchFieldExceptionpublic T get(java.lang.Object instance)
get in interface AnnotatedField<T>public java.lang.String getPropertyName()
getPropertyName in interface AnnotatedField<T>AnnotatedItem.getName()public AnnotatedType<?> getDeclaringClass()
getDeclaringClass in interface AnnotatedField<T>AnnotatedField.getDeclaringClass()public java.lang.String toString()
toString in class AbstractAnnotatedMember<T,java.lang.reflect.Field>
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||