|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Object | +--com.generationjava.patterns.registry.RegistryRegistry
A Registry of Registries.
| Constructor Summary | |
RegistryRegistry()
|
|
RegistryRegistry(Registry registry)
|
|
| Method Summary | |
void |
clear()
Clear the registry of values. |
void |
clear(java.lang.Object type)
|
java.lang.Object |
get(java.lang.Object key)
Get the key registered under the specified key.. |
java.lang.Object |
get(java.lang.Object type,
java.lang.Object key)
|
Null |
getNull()
Get the null value which will be returned when a key is requested and is not in the registry. |
Null |
getNull(java.lang.Object type)
|
Registry |
getRegistry(java.lang.Object type)
|
RegistryFactory |
getRegistryFactory()
Get the factory which will create instances of the Registry. |
RegistryFactory |
getRegistryFactory(java.lang.Object type)
|
java.util.Iterator |
keys()
Get the list of known keys. |
void |
register(java.lang.Object key,
java.lang.Object value)
Registry an object under a registration key. |
void |
register(java.lang.Object type,
java.lang.Object key,
java.lang.Object value)
|
void |
remove(java.lang.Object key)
Remove a value from the registry for the specified key. |
void |
remove(java.lang.Object type,
java.lang.Object key)
|
void |
setNull(Null value)
Set the null value which will be returned when a key is requested and is not in the registry. |
void |
setNull(java.lang.Object type,
Null value)
|
void |
setRegistryFactory(java.lang.Object type,
RegistryFactory factory)
|
void |
setRegistryFactory(RegistryFactory factory)
Set the factory which will create instances of the Registry. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public RegistryRegistry()
public RegistryRegistry(Registry registry)
| Method Detail |
public Registry getRegistry(java.lang.Object type)
public void setRegistryFactory(RegistryFactory factory)
Registry
setRegistryFactory in interface Registrypublic RegistryFactory getRegistryFactory()
Registry
getRegistryFactory in interface Registry
public void register(java.lang.Object key,
java.lang.Object value)
Registry
register in interface Registrykey - Object registration keyvalue - Object to registerpublic java.lang.Object get(java.lang.Object key)
Registry
get in interface Registrypublic void remove(java.lang.Object key)
Registry
remove in interface Registrypublic java.util.Iterator keys()
Registry
keys in interface Registrypublic void clear()
Registry
clear in interface Registrypublic void setNull(Null value)
Registry
setNull in interface Registrypublic Null getNull()
Registry
getNull in interface Registry
public void setRegistryFactory(java.lang.Object type,
RegistryFactory factory)
public RegistryFactory getRegistryFactory(java.lang.Object type)
public void register(java.lang.Object type,
java.lang.Object key,
java.lang.Object value)
public java.lang.Object get(java.lang.Object type,
java.lang.Object key)
public void clear(java.lang.Object type)
public void remove(java.lang.Object type,
java.lang.Object key)
public void setNull(java.lang.Object type,
Null value)
public Null getNull(java.lang.Object type)
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||