|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.jboss.portal.common.util.CopyOnWriteRegistry
public class CopyOnWriteRegistry
Implementation of a registry that implements copy on write semantics.
| Constructor Summary | |
|---|---|
CopyOnWriteRegistry()
|
|
| Method Summary | |
|---|---|
java.util.Set |
getKeys()
Return an unmodifiable set containing the keys. |
java.lang.Object |
getRegistration(java.lang.Object key)
Return a registration or null if it does not exist. |
java.util.Collection |
getRegistrations()
Return an unmodifable collection containing the registrations. |
boolean |
register(java.lang.Object key,
java.lang.Object object)
Register an object. |
java.lang.Object |
unregister(java.lang.Object key)
Unregister an object. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public CopyOnWriteRegistry()
| Method Detail |
|---|
public boolean register(java.lang.Object key,
java.lang.Object object)
throws java.lang.IllegalArgumentException
key - the registration keyobject - the registered object
java.lang.IllegalArgumentException - if the one argument is null
public java.lang.Object unregister(java.lang.Object key)
throws java.lang.IllegalArgumentException
key - the registration key
java.lang.IllegalArgumentException - if the key is nullpublic java.util.Set getKeys()
public java.util.Collection getRegistrations()
public java.lang.Object getRegistration(java.lang.Object key)
throws java.lang.IllegalArgumentException
key - the registration key
java.lang.IllegalArgumentException - if the key is null
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||