|
JBoss Modular Service Kernel API 1.0.0.CR2 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jboss.msc.inject.RetainingInjector<T>
T
- the injected value typepublic abstract class RetainingInjector<T>
An injector which retains its value.
Constructor Summary | |
---|---|
RetainingInjector()
|
Method Summary | |
---|---|
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). |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public RetainingInjector()
Method Detail |
---|
public void inject(T value) throws InjectionException
inject
in interface Injector<T>
value
- the value
InjectionException
- if the injection failedpublic void uninject()
inject()
has been called.
uninject
in interface Injector<T>
protected Value<T> getStoredValue()
protected Value<T> setStoredValue(Value<T> value)
null
).
value
- the value object (must not be null
)
null
if none was stored
|
JBoss Modular Service Kernel API 1.0.0.CR2 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |