K
- the key typeT
- the value typepublic final class ConcurrentMapInjector<K,T> extends RetainingInjector<T> implements Injector<T>
Constructor and Description |
---|
ConcurrentMapInjector(ConcurrentMap<K,T> map,
K key)
Construct a new instance.
|
Modifier and Type | Method and Description |
---|---|
void |
inject(T value)
Inject the given value.
|
void |
uninject()
Uninject the given value (in other words, cancel or undo a previous injection).
|
getStoredValue, setStoredValue
public ConcurrentMapInjector(ConcurrentMap<K,T> map, K key)
map
- the map to updatekey
- the key for this injectorpublic void inject(T value) throws InjectionException
inject
in interface Injector<T>
inject
in class RetainingInjector<T>
value
- the valueInjectionException
- if the injection failedCopyright © 2018 JBoss by Red Hat. All rights reserved.