Package org.jboss.msc.inject
Class CastingInjector<T>
- java.lang.Object
-
- org.jboss.msc.inject.CastingInjector<T>
-
- Type Parameters:
T
- the type to which the argument should be cast
@Deprecated public final class CastingInjector<T> extends Object implements Injector<Object>
Deprecated.UseServiceBuilder.provides(org.jboss.msc.service.ServiceName...)
method instead. This class will be removed in a future release.An injector which casts the value to a specific type.- Author:
- David M. Lloyd
-
-
Constructor Summary
Constructors Constructor Description CastingInjector(Injector<T> target, Class<T> type)
Deprecated.Construct a new instance.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description void
inject(Object value)
Deprecated.Inject the given value.void
uninject()
Deprecated.Uninject the given value (in other words, cancel or undo a previous injection).
-
-
-
Method Detail
-
inject
public void inject(Object value) throws InjectionException
Deprecated.Inject the given value.- Specified by:
inject
in interfaceInjector<T>
- Parameters:
value
- the value- Throws:
InjectionException
- if the injection failed
-
-