Save This Page
Home » dom4j-1.6.1 » org.dom4j.util » [javadoc | source]
org.dom4j.util
public class: PerThreadSingleton [javadoc | source]
java.lang.Object
   org.dom4j.util.PerThreadSingleton

All Implemented Interfaces:
    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.

Constructor:
 public PerThreadSingleton() 
Method from org.dom4j.util.PerThreadSingleton Summary:
instance,   reset,   setSingletonClassName
Methods from java.lang.Object:
equals,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from org.dom4j.util.PerThreadSingleton Detail:
 public Object instance() 
 public  void reset() 
 public  void setSingletonClassName(String singletonClassName)