com.generationjava.patterns.registry
Class AbstractRegistry

java.lang.Object
  |
  +--com.generationjava.patterns.registry.AbstractRegistry
All Implemented Interfaces:
Registry
Direct Known Subclasses:
NullRegistry, SimpleRegistry, ThreadRegistry

public abstract class AbstractRegistry
extends java.lang.Object
implements Registry

Provides abstract functionality for a Registry class. Handles the RegistryFactory of the Registry.


Constructor Summary
AbstractRegistry()
           
 
Method Summary
 Null getNull()
          Get the null value which will be returned when a key is requested and is not in the registry.
 RegistryFactory getRegistryFactory()
          Get the factory which will create instances of the Registry.
 void setNull(Null value)
          Set the null value which will be returned when a key is requested and is not in the registry.
 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
 
Methods inherited from interface com.generationjava.patterns.registry.Registry
clear, get, keys, register, remove
 

Constructor Detail

AbstractRegistry

public AbstractRegistry()
Method Detail

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

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


Copyright © 2000-2003 GenerationJava. All Rights Reserved.