T
- the value typepublic final class AddMethodInjector<T> extends RetainingInjector<T> implements Injector<T>
Injector
- namely, the same injector cannot be used to inject multiple instances into
a collection.Constructor and Description |
---|
AddMethodInjector(Value<?> target,
Method addMethod,
Method removeMethod)
Construct a new instance.
|
Modifier and Type | Method and Description |
---|---|
void |
inject(T value)
Inject the given value.
|
void |
uninject()
Uninject the given value (in other words, cancel or undo a previous injection).
|
getStoredValue, setStoredValue
public void inject(T value)
Copyright © 2017 JBoss by Red Hat. All rights reserved.