|
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.CastingInjector<T>
T - the type to which the argument should be castpublic final class CastingInjector<T>

An injector which casts the value to a specific type.
| Constructor Summary | |
|---|---|
CastingInjector(Injector<T> target,
Class<T> type)
Construct a new instance. |
|
| Method Summary | |
|---|---|
void |
inject(Object value)
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 CastingInjector(Injector<T> target,
Class<T> type)
target - the injection targettype - the type to cast to| Method Detail |
|---|
public void inject(Object value)
throws InjectionException
inject in interface Injector<Object>value - the value
InjectionException - if the injection failedpublic void uninject()
inject()
has been called.
uninject in interface Injector<Object>
|
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 | |||||||||