Package org.jboss.msc.inject
Class CastingInjector<T>
- java.lang.Object
-
- org.jboss.msc.inject.CastingInjector<T>
-
-
Constructor Summary
Constructors Constructor Description CastingInjector(Injector<T> target, java.lang.Class<T> type)
Construct a new instance.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
inject(java.lang.Object value)
Inject the given value.void
uninject()
Uninject the given value (in other words, cancel or undo a previous injection).
-
-
-
Method Detail
-
inject
public void inject(java.lang.Object value) throws InjectionException
Inject the given value.- Specified by:
inject
in interfaceInjector<T>
- Parameters:
value
- the value- Throws:
InjectionException
- if the injection failed
-
-