T
- the type to which the argument should be castServiceBuilder.provides(org.jboss.msc.service.ServiceName...)
method instead. This class will be removed in a future release.@Deprecated public final class CastingInjector<T> extends java.lang.Object implements Injector<java.lang.Object>
Constructor and Description |
---|
CastingInjector(Injector<T> target,
java.lang.Class<T> type)
Deprecated.
Construct a new instance.
|
Modifier and Type | Method and Description |
---|---|
void |
inject(java.lang.Object value)
Deprecated.
Inject the given value.
|
void |
uninject()
Deprecated.
Uninject the given value (in other words, cancel or undo a previous injection).
|
public void inject(java.lang.Object value) throws InjectionException
inject
in interface Injector<java.lang.Object>
value
- the valueInjectionException
- if the injection failedCopyright © 2012 JBoss, a division of Red Hat, Inc.