org.dom4j.util
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 $
Constructor Summary | |
---|---|
PerThreadSingleton() |
Method Summary | |
---|---|
Object | instance() |
void | reset() |
void | setSingletonClassName(String singletonClassName) |