org.dom4j.util

Class PerThreadSingleton

public class PerThreadSingleton extends Object implements SingletonStrategy

PerThreadSingleton is an implementation of the SingletonStrategy used to provide common factory access to a single object instance based on an implementation strategy for one object instance per thread. This is useful in replace of the ThreadLocal usage.

Version: $Revision: 1.3 $

Author: David Lucas

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

Constructor Detail

PerThreadSingleton

public PerThreadSingleton()

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