T
- the value typepublic final class SetMethodInjector<T> extends Object implements Injector<T>
Constructor and Description |
---|
SetMethodInjector(Value<?> target,
Method method)
Construct a new instance.
|
Modifier and Type | Method and Description |
---|---|
static <T> Injector<T> |
create(Value<?> target,
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).
|
public static <T> Injector<T> create(Value<?> target, Method method)
target
- the object upon which the method is to be calledmethod
- the method to invokepublic void inject(T value)
Copyright © 2017 JBoss by Red Hat. All rights reserved.