org.dom4j.util

Class SimpleSingleton

public class SimpleSingleton extends Object implements SingletonStrategy

SimpleSingleton is an implementation of the SingletonStrategy interface used to provide common factory access for the same object instance. This implementation will create a new instance from the class specified and will not create a new one unless it is reset.

Version: $Revision: 1.3 $

Author: David Lucas

Constructor Summary
SimpleSingleton()
Method Summary
Objectinstance()
voidreset()
voidsetSingletonClassName(String singletonClassName)

Constructor Detail

SimpleSingleton

public SimpleSingleton()

Method Detail

instance

public Object instance()

reset

public void reset()

setSingletonClassName

public void setSingletonClassName(String singletonClassName)
Copyright B) 2005 MetaStuff Ltd. All Rights Reserved. Hosted by

SourceForge