|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jboss.media.util.registry.MapRegistry
A synchronized Map based registry with non-null keys or values.
Constructor Summary | |
MapRegistry()
|
|
MapRegistry(java.util.Map initialEntries)
|
Method Summary | |
void |
bind(java.lang.Object key,
java.lang.Object value)
Binds the given key with the given value. |
java.util.Iterator |
keyIterator()
Obtains an Iterator for all the keys in the registry. |
java.lang.Object |
lookup(java.lang.Object key)
Lookups a value with the given key. |
void |
rebind(java.lang.Object key,
java.lang.Object value)
Rebinds the given key with the given value. |
java.lang.Object |
unbind(java.lang.Object key)
Unbinds a value with the given key. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public MapRegistry()
public MapRegistry(java.util.Map initialEntries) throws ObjectAlreadyBoundException (src)
Method Detail |
public void bind(java.lang.Object key, java.lang.Object value) throws ObjectAlreadyBoundException (src)
Registry (src)
bind
in interface Registry (src)
ObjectAlreadyBoundException (src)
- if there is another value
already bound for that key.public void rebind(java.lang.Object key, java.lang.Object value)
Registry (src)
rebind
in interface Registry (src)
public java.lang.Object unbind(java.lang.Object key) throws ObjectNotBoundException (src)
Registry (src)
unbind
in interface Registry (src)
ObjectNotBoundException (src)
- if there is no value bound to the key.public java.lang.Object lookup(java.lang.Object key) throws ObjectNotBoundException (src)
Registry (src)
lookup
in interface Registry (src)
ObjectNotBoundException (src)
- if there is no value bound to the key.public java.util.Iterator keyIterator()
Registry (src)
Iterator
for all the keys in the registry.
keyIterator
in interface Registry (src)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |