|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Object
|
+--com.generationjava.patterns.registry.AbstractRegistry
|
+--com.generationjava.patterns.registry.NullRegistry
A registry which does nothing.
| Field Summary | |
static NullRegistry |
NULL_REGISTRY
Singelton null registry. |
| Constructor Summary | |
NullRegistry()
|
|
| Method Summary | |
void |
clear()
Clear the registry of values. |
java.lang.Object |
get(java.lang.Object key)
Returns null. |
Null |
getNull()
Returns null. |
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 |
remove(java.lang.Object key)
Remove a value from the registry for the specified key. |
void |
setNull(Null value)
Set the null value which will be returned when a key is requested and is not in the registry. |
| Methods inherited from class com.generationjava.patterns.registry.AbstractRegistry |
getRegistryFactory, setRegistryFactory |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
public static final NullRegistry NULL_REGISTRY
| Constructor Detail |
public NullRegistry()
| Method Detail |
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)
get in interface Registrypublic void clear()
Registry
clear in interface Registrypublic void remove(java.lang.Object key)
Registry
remove in interface Registrypublic java.util.Iterator keys()
Registry
keys in interface Registrypublic void setNull(Null value)
Registry
setNull in interface RegistrysetNull in class AbstractRegistrypublic Null getNull()
getNull in interface RegistrygetNull in class AbstractRegistry
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||