T
- the injected value typepublic abstract class RetainingInjector<T> extends Object implements Injector<T>
Constructor and Description |
---|
RetainingInjector() |
Modifier and Type | Method and Description |
---|---|
protected Value<T> |
getStoredValue()
Get the value object stored in this injector.
|
void |
inject(T value)
Inject the given value.
|
protected Value<T> |
setStoredValue(Value<T> value)
Set the value object stored in this injector (must not be
null ). |
void |
uninject()
Uninject the given value (in other words, cancel or undo a previous injection).
|
public void inject(T value) throws InjectionException
inject
in interface Injector<T>
value
- the valueInjectionException
- if the injection failedpublic void uninject()
inject()
has been called.protected Value<T> getStoredValue()
Copyright © 2018 JBoss by Red Hat. All rights reserved.