|
JBoss Modular Service Kernel API 1.0.0.GA | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jboss.msc.inject.MapInjector<K,T>
K - the key typeT - the value typepublic final class MapInjector<K,T>

An injector which applies a value to a map entry.
| Constructor Summary | |
|---|---|
MapInjector(Map<K,T> map,
K key)
Construct a new instance. |
|
| Method Summary | |
|---|---|
void |
inject(T value)
Inject the given value. |
void |
uninject()
Uninject the given value (in other words, cancel or undo a previous injection). |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public MapInjector(Map<K,T> map,
K key)
map - the map to updatekey - the key for this injector| Method Detail |
|---|
public void inject(T value)
throws InjectionException
inject in interface Injector<T>value - the value
InjectionException - if the injection failedpublic void uninject()
inject()
has been called.
uninject in interface Injector<T>
|
JBoss Modular Service Kernel API 1.0.0.GA | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||