com.generationjava.patterns.registry
Class AbstractRegistryFactory

java.lang.Object
  |
  +--com.generationjava.patterns.registry.AbstractRegistryFactory
All Implemented Interfaces:
RegistryFactory
Direct Known Subclasses:
NullRegistryFactory, SimpleRegistryFactory, SingletonRegistryFactory

public abstract class AbstractRegistryFactory
extends java.lang.Object
implements RegistryFactory

Provides abstract functionality for registry-factory.


Constructor Summary
AbstractRegistryFactory()
           
 
Method Summary
abstract  Registry getRegistryInstance()
          Get a general instance of a registry.
 Registry getRegistryInstance(java.lang.Object key)
          Get an instance of a registry for a specific key.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AbstractRegistryFactory

public AbstractRegistryFactory()
Method Detail

getRegistryInstance

public abstract Registry getRegistryInstance()
Description copied from interface: RegistryFactory
Get a general instance of a registry.

Specified by:
getRegistryInstance in interface RegistryFactory

getRegistryInstance

public Registry getRegistryInstance(java.lang.Object key)
Description copied from interface: RegistryFactory
Get an instance of a registry for a specific key.

Specified by:
getRegistryInstance in interface RegistryFactory


Copyright © 2000-2003 GenerationJava. All Rights Reserved.