org.dom4j.util

Class SimpleSingleton

Implemented Interfaces:
SingletonStrategy

public class SimpleSingleton
extends java.lang.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

Object
instance()
void
reset()
void
setSingletonClassName(String singletonClassName)

Constructor Details

SimpleSingleton

public SimpleSingleton()

Method Details

instance

public Object instance()
Specified by:
instance in interface SingletonStrategy

reset

public void reset()
Specified by:
reset in interface SingletonStrategy

setSingletonClassName

public void setSingletonClassName(String singletonClassName)
Specified by:
setSingletonClassName in interface SingletonStrategy

Copyright B) 2005 MetaStuff Ltd. All Rights Reserved. Hosted by

SourceForge Logo