T
- public class WeldFieldImpl<T,X> extends AbstractWeldMember<T,X,Field> implements WeldField<T,X>
MAPPED_DECLARED_METAANNOTATIONS, MAPPED_METAANNOTATIONS
Modifier and Type | Method and Description |
---|---|
T |
get(Object instance) |
Field |
getAnnotatedField()
Gets the underlying field
|
Field |
getDelegate() |
String |
getPropertyName()
Gets the property name
|
boolean |
isGeneric() |
static <X> WeldFieldImpl<?,X> |
of(javax.enterprise.inject.spi.AnnotatedField<? super X> annotatedField,
WeldClass<X> declaringClass,
ClassTransformer classTransformer) |
static <T,X> WeldFieldImpl<T,X> |
of(Field field,
WeldClass<X> declaringClass,
ClassTransformer classTransformer) |
void |
set(Object instance,
Object value)
Injects an instance
|
void |
setOnInstance(Object instance,
Object value) |
String |
toString()
Gets a string representation of the field
|
getDeclaringType, getJavaMember, getName, getPackage, isFinal, isPackagePrivate, isPrivate, isPublic, isStatic, isTransient
addMetaAnnotations, addMetaAnnotations, buildAnnotationMap, buildAnnotationMap, getActualTypeArguments, getAnnotation, getAnnotations, getBaseType, getBindingsAsArray, getInterfaceClosure, getJavaClass, getMetaAnnotations, getQualifiers, getTypeClosure, isAnnotationPresent, isParameterizedType, isPrimitive
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
isTransient
getDeclaringType
getActualTypeArguments, getBindingsAsArray, getInterfaceClosure, getJavaClass, getMetaAnnotations, getName, getPackage, getQualifiers, isFinal, isPackagePrivate, isParameterizedType, isPrimitive, isPrivate, isPublic, isStatic
public static <T,X> WeldFieldImpl<T,X> of(Field field, WeldClass<X> declaringClass, ClassTransformer classTransformer)
public static <X> WeldFieldImpl<?,X> of(javax.enterprise.inject.spi.AnnotatedField<? super X> annotatedField, WeldClass<X> declaringClass, ClassTransformer classTransformer)
public Field getAnnotatedField()
public Field getDelegate()
getDelegate
in class AbstractWeldAnnotated<T,Field>
public void set(Object instance, Object value) throws IllegalArgumentException, IllegalAccessException
WeldField
set
in interface WeldField<T,X>
instance
- The instance to inject intovalue
- The value to injectIllegalArgumentException
IllegalAccessException
public void setOnInstance(Object instance, Object value) throws IllegalArgumentException, SecurityException, IllegalAccessException, NoSuchFieldException
public String getPropertyName()
getPropertyName
in interface WeldField<T,X>
WeldAnnotated.getName()
public String toString()
toString
in class AbstractWeldMember<T,X,Field>
public boolean isGeneric()
isGeneric
in interface WeldAnnotated<T,Field>
Copyright © 2013 Seam Framework. All rights reserved.