JBoss Modular Service Kernel API 1.0.2.GA
- java.lang.Object
-
- org.jboss.msc.inject.MapInjector<K,T>
-
- Type Parameters:
K
- the key typeT
- the value type
- All Implemented Interfaces:
- Injector<T>
public final class MapInjector<K,T>
extends java.lang.Object
implements Injector<T>
An injector which applies a value to a map entry.
- Author:
- David M. Lloyd
-
-
Constructor Summary
Constructors
Constructor and Description |
MapInjector(java.util.Map<K,T> map,
K key)
Construct a new instance.
|
-
Method Summary
Methods
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).
|
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-
Constructor Detail
-
MapInjector
public MapInjector(java.util.Map<K,T> map,
K key)
Construct a new instance.
- Parameters:
map
- the map to updatekey
- the key for this injector
JBoss Modular Service Kernel API 1.0.2.GA
Copyright © 2011 JBoss, a division of Red Hat, Inc.