| Modifier and Type | Field and Description |
|---|---|
private java.lang.reflect.Method |
method |
private static java.lang.Object[] |
NULL_PARAM |
private Value<?> |
target |
| Constructor and Description |
|---|
SetMethodInjector(Value<?> target,
java.lang.reflect.Method method)
Construct a new instance.
|
| Modifier and Type | Method and Description |
|---|---|
static <T> Injector<T> |
create(Value<?> target,
java.lang.reflect.Method method)
Construct a new instance.
|
void |
inject(T value)
Inject the given value.
|
void |
uninject()
Uninject the given value (in other words, cancel or undo a previous injection).
|
private static final java.lang.Object[] NULL_PARAM
private final Value<?> target
private final java.lang.reflect.Method method
public SetMethodInjector(Value<?> target, java.lang.reflect.Method method)
target - the object upon which the method is to be calledmethod - the method to invokepublic static <T> Injector<T> create(Value<?> target, java.lang.reflect.Method method)
target - the object upon which the method is to be calledmethod - the method to invokepublic void inject(T value)