com.generationjava.patterns.registry
Class RegistryRegistry

java.lang.Object
  |
  +--com.generationjava.patterns.registry.RegistryRegistry
All Implemented Interfaces:
Registry

public class RegistryRegistry
extends java.lang.Object
implements Registry

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

RegistryRegistry

public RegistryRegistry()

RegistryRegistry

public RegistryRegistry(Registry registry)
Method Detail

getRegistry

public Registry getRegistry(java.lang.Object type)

setRegistryFactory

public void setRegistryFactory(RegistryFactory factory)
Description copied from interface: Registry
Set the factory which will create instances of the Registry.

Specified by:
setRegistryFactory in interface Registry

getRegistryFactory

public RegistryFactory getRegistryFactory()
Description copied from interface: Registry
Get the factory which will create instances of the Registry.

Specified by:
getRegistryFactory in interface Registry

register

public void register(java.lang.Object key,
                     java.lang.Object value)
Description copied from interface: Registry
Registry an object under a registration key.

Specified by:
register in interface Registry
Parameters:
key - Object registration key
value - Object to register

get

public java.lang.Object get(java.lang.Object key)
Description copied from interface: Registry
Get the key registered under the specified key..

Specified by:
get in interface Registry

remove

public void remove(java.lang.Object key)
Description copied from interface: Registry
Remove a value from the registry for the specified key.

Specified by:
remove in interface Registry

keys

public java.util.Iterator keys()
Description copied from interface: Registry
Get the list of known keys.

Specified by:
keys in interface Registry

clear

public void clear()
Description copied from interface: Registry
Clear the registry of values.

Specified by:
clear in interface Registry

setNull

public void setNull(Null value)
Description copied from interface: Registry
Set the null value which will be returned when a key is requested and is not in the registry.

Specified by:
setNull in interface Registry

getNull

public Null getNull()
Description copied from interface: Registry
Get the null value which will be returned when a key is requested and is not in the registry.

Specified by:
getNull in interface Registry

setRegistryFactory

public void setRegistryFactory(java.lang.Object type,
                               RegistryFactory factory)

getRegistryFactory

public RegistryFactory getRegistryFactory(java.lang.Object type)

register

public void register(java.lang.Object type,
                     java.lang.Object key,
                     java.lang.Object value)

get

public java.lang.Object get(java.lang.Object type,
                            java.lang.Object key)

clear

public void clear(java.lang.Object type)

remove

public void remove(java.lang.Object type,
                   java.lang.Object key)

setNull

public void setNull(java.lang.Object type,
                    Null value)

getNull

public Null getNull(java.lang.Object type)


Copyright © 2000-2003 GenerationJava. All Rights Reserved.