|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface AnnotatedField<T>
AnnotatedField provides a uniform access to the annotations on an annotated field
| 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 |
void |
setOnInstance(java.lang.Object declaringInstance,
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. |
| Methods inherited from interface org.jboss.webbeans.introspector.AnnotatedMember |
|---|
getMember |
| Methods inherited from interface org.jboss.webbeans.introspector.AnnotatedItem |
|---|
getActualTypeArguments, getAnnotation, getAnnotationsAsSet, getAnnotationStore, getBindingTypes, getBindingTypesAsArray, getDeclaredMetaAnnotations, getMetaAnnotations, getMetaAnnotationsAsArray, getName, getType, isAnnotationPresent, isAssignableFrom, isAssignableFrom, isDeclaredAnnotationPresent, isFinal, isProxyable, isPublic, isStatic |
| Method Detail |
|---|
java.lang.reflect.Field getAnnotatedField()
void set(java.lang.Object declaringInstance,
java.lang.Object value)
throws java.lang.IllegalArgumentException,
java.lang.IllegalAccessException
declaringInstance - The instance to inject intovalue - The value to inject
java.lang.IllegalArgumentException
java.lang.IllegalAccessException
void setOnInstance(java.lang.Object declaringInstance,
java.lang.Object value)
throws java.lang.IllegalArgumentException,
java.lang.SecurityException,
java.lang.IllegalAccessException,
java.lang.NoSuchFieldException
#set(Object, Manager) the field injected into is
discovered from the declaring instance. This is slower, but safe to use
with proxies.
declaringInstance - The instance to inject intovalue - The value to inject
java.lang.IllegalArgumentException
java.lang.SecurityException
java.lang.IllegalAccessException
java.lang.NoSuchFieldExceptionT get(java.lang.Object instance)
AnnotatedType<?> getDeclaringClass()
java.lang.String getPropertyName()
boolean isTransient()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||