| 
 | |||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.dom4j.util.PerThreadSingleton
 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 Summary | |
| PerThreadSingleton() | |
| Method Summary | |
|  Object | instance()return a singleton instance of the class specified in setSingletonClass | 
|  void | reset()reset the instance to a new instance for the implemented strategy | 
|  void | setSingletonClassName(String singletonClassName)set a singleton class name that will be used to create the singleton based on the strategy implementation of this interface. | 
| Methods inherited from class java.lang.Object | 
| clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
| Constructor Detail | 
public PerThreadSingleton()
| Method Detail | 
public void reset()
SingletonStrategy
reset in interface SingletonStrategypublic Object instance()
SingletonStrategy
instance in interface SingletonStrategypublic void setSingletonClassName(String singletonClassName)
SingletonStrategy
setSingletonClassName in interface SingletonStrategy| 
 | |||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||