org.dom4j.util

Class PerThreadSingleton

Implemented Interfaces:
SingletonStrategy

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

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

Constructor Details

PerThreadSingleton

public PerThreadSingleton()

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