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 Object implements Injector<Object>
Constructor and Description |
---|
CastingInjector(Injector<T> target,
Class<T> type)
Deprecated.
Construct a new instance.
|
Modifier and Type | Method and 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).
|
public void inject(Object value) throws InjectionException
inject
in interface Injector<Object>
value
- the valueInjectionException
- if the injection failedCopyright © 2021 JBoss by Red Hat. All rights reserved.