B - The bean type that declares the injection pointT - The field component typepublic interface FieldInjectionPoint<B,T> extends InjectionPoint<B>, io.micronaut.core.annotation.AnnotationMetadataProvider, io.micronaut.core.annotation.AnnotatedElement, io.micronaut.core.type.ArgumentCoercible<T>
| Modifier and Type | Method and Description |
|---|---|
java.lang.reflect.Field |
getField()
Resolves the underlying field.
|
java.lang.String |
getName() |
java.lang.Class<T> |
getType() |
void |
set(T instance,
java.lang.Object object)
Sets the value of the field.
|
getDeclaringBean, requiresReflectionjava.lang.String getName()
getName in interface io.micronaut.core.naming.Namedjava.lang.reflect.Field getField()
java.lang.Class<T> getType()
void set(T instance, java.lang.Object object)
instance - the instanceobject - The the field on the target object