Interface ContextInjector.InjectionAim
-
- All Known Implementing Classes:
ContextInjector.BeanSetter,ContextInjector.FieldWrapper
- Enclosing class:
- ContextInjector
static interface ContextInjector.InjectionAimRepresents a field or a bean setter, where the runtime injects something in.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidinjectInto(java.lang.Object resource, java.lang.Object toInject, boolean allMustBeAvailable)Inject the toInject into this field or bean setter on object resource.
-
-
-
Method Detail
-
injectInto
void injectInto(java.lang.Object resource, java.lang.Object toInject, boolean allMustBeAvailable) throws java.lang.IllegalArgumentException, InjectException, java.lang.reflect.InvocationTargetExceptionInject the toInject into this field or bean setter on object resource.- Parameters:
resource-toInject-allMustBeAvailable-- Throws:
java.lang.IllegalArgumentExceptionInjectExceptionjava.lang.reflect.InvocationTargetException- See Also:
FieldWrapper#set(Object, Object),Method.invoke(Object, Object...)
-
-