|
JBoss Modular Service Kernel API 1.0.0.Beta4-SNAPSHOT | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jboss.msc.inject.TranslatingInjector<I,O>
I
- the input typeO
- the output typepublic final class TranslatingInjector<I,O>
An injector which passes a value through a translator to another injector.
Constructor Summary | |
---|---|
TranslatingInjector(Translator<I,O> translator,
Injector<O> injector)
Construct a new instance. |
Method Summary | |
---|---|
void |
inject(I input)
Inject the given value. |
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 TranslatingInjector(Translator<I,O> translator, Injector<O> injector)
translator
- the translator to useinjector
- the injector to pass the result toMethod Detail |
---|
public void inject(I input)
inject
in interface Injector<I>
input
- the valuepublic void uninject()
inject()
has been called.
uninject
in interface Injector<I>
|
JBoss Modular Service Kernel API 1.0.0.Beta4-SNAPSHOT | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |