Package org.jboss.msc.inject
Class ConcurrentMapInjector<K,T>
- java.lang.Object
-
- org.jboss.msc.inject.RetainingInjector<T>
-
- org.jboss.msc.inject.ConcurrentMapInjector<K,T>
-
- Type Parameters:
K
- the key typeT
- the value type
- All Implemented Interfaces:
Injector<T>
@Deprecated public final class ConcurrentMapInjector<K,T> extends RetainingInjector<T> implements Injector<T>
Deprecated.UseServiceBuilder.provides(org.jboss.msc.service.ServiceName...)
method instead. This class will be removed in a future release.An injector which applies a value to a concurrent map entry.- Author:
- David M. Lloyd
-
-
Constructor Summary
Constructors Constructor Description ConcurrentMapInjector(ConcurrentMap<K,T> map, K key)
Deprecated.Construct a new instance.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method 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).-
Methods inherited from class org.jboss.msc.inject.RetainingInjector
getStoredValue, setStoredValue
-
-
-
-
Constructor Detail
-
ConcurrentMapInjector
public ConcurrentMapInjector(ConcurrentMap<K,T> map, K key)
Deprecated.Construct a new instance.- Parameters:
map
- the map to updatekey
- the key for this injector
-
-
Method Detail
-
inject
public void inject(T value) throws InjectionException
Deprecated.Inject the given value.- Specified by:
inject
in interfaceInjector<K>
- Overrides:
inject
in classRetainingInjector<T>
- Parameters:
value
- the value- Throws:
InjectionException
- if the injection failed
-
-