FileDocCategorySizeDatePackage
Singleton.javaAPI DocExample1556Sun Dec 14 22:47:32 GMT 2003oreilly.hcj.finalstory

Singleton

public class Singleton extends Object
A demonstration of an extensible sinlgeton class.
author
Robert Simmons jr. (kraythe)
version
$Revision: 1.3 $

Fields Summary
private static final Logger
LOGGER
Holds the Logger for this class.
public static Singleton
instance
Holds the instance of the singleton.
private final String[]
params
Holds the command line parameters.
Constructors Summary
protected Singleton(String[] params)
Creates a new Singleton object.

param
params The command line parameters.


	            	 
	    
		this.params = params;
		if (LOGGER.isDebugEnabled()) {
			LOGGER.debug(Arrays.asList(this.params).toString());
		}
	
Methods Summary
public static voidinit(java.lang.String[] params)
Initialize the singleton instance.

param
params parameters for initialization.

		instance = new Singleton(params);