| java.lang.Object net.sourceforge.groboutils.util.classes.v1.AbstractSingleStore net.sourceforge.groboutils.util.classes.v1.SingletonStore
SingletonStore | public class SingletonStore extends AbstractSingleStore (Code) | | Aids pluggable factories and related classes by being a central repository
for storing a singleton, and creating means to load and change the singleton.
author: Matt Albrecht groboclown@users.sourceforge.net version: $Date: 2003/02/10 22:52:36 $ since: March 30, 2002 |
Constructor Summary | |
public | SingletonStore(Class instanceOf, Class defaultImpl, String sysPropertyKey) Constructor specifying all the parameters for using a singleton in this
framework. |
Method Summary | |
public void | setDefaultSingleton() Sets the inner singleton to the default, which pulls from the system
property key. | public void | setSingletonFromProperty(String key) Set the singleton to the class specified in the given system
property; if the class is invalid, then the default singleton class will
be used instead.
Parameters: key - the System property to reference for the classname toinstantiate. |
SingletonStore | public SingletonStore(Class instanceOf, Class defaultImpl, String sysPropertyKey)(Code) | | Constructor specifying all the parameters for using a singleton in this
framework.
Parameters: instanceOf - singletons must be of this class. Parameters: defaultImpl - the class which will be used if no validimplementation class can be found. Parameters: sysPropertyKey - the system property key to reference for the nameof the implementation class. |
setDefaultSingleton | public void setDefaultSingleton()(Code) | | Sets the inner singleton to the default, which pulls from the system
property key.
|
|
|