K
- the key typeT
- the value typeServiceBuilder.provides(org.jboss.msc.service.ServiceName...)
method instead. This class will be removed in a future release.@Deprecated public final class MapInjector<K,T> extends Object implements Injector<T>
Constructor and Description |
---|
MapInjector(Map<K,T> map,
K key)
Deprecated.
Construct a new instance.
|
Modifier and Type | Method and Description |
---|---|
void |
inject(T 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(T value) throws InjectionException
inject
in interface Injector<T>
value
- the valueInjectionException
- if the injection failedCopyright © 2019 JBoss by Red Hat. All rights reserved.