|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectccc.commons.MapRegistry
public final class MapRegistry
A registry implementation using an in-memory map.
Constructor Summary | |
---|---|
MapRegistry()
Constructor. |
|
MapRegistry(java.lang.String location,
java.lang.Object object)
Constructor. |
Method Summary | ||
---|---|---|
|
get(java.lang.String location)
Get an object from the registry. |
|
Registry |
put(java.lang.String location,
java.lang.Object object)
Put an object into JNDI. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public MapRegistry(java.lang.String location, java.lang.Object object)
location
- The location to store the item.object
- The item to store.public MapRegistry()
Method Detail |
---|
public <T> T get(java.lang.String location)
get
in interface Registry
T
- The type of the object at the specified location.location
- Location in the registry.
public Registry put(java.lang.String location, java.lang.Object object)
put
in interface Registry
location
- Location in the in the registry.object
- The object to put.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |