| Modifier and Type | Field and Description |
|---|---|
private K |
key |
private java.util.Map<K,T> |
map |
| Constructor and Description |
|---|
MapInjector(java.util.Map<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).
|
public void inject(T value) throws InjectionException
inject in interface Injector<T>value - the valueInjectionException - if the injection failed