er.extensions
Class ERXCloneableThreadLocal
java.lang.Object
java.lang.ThreadLocal
java.lang.InheritableThreadLocal
er.extensions.ERXCloneableThreadLocal
- public class ERXCloneableThreadLocal
- extends InheritableThreadLocal
ERXClonableThreadLocal
extends InheritableThreadLocal
to bequeath a cloned copy of the parent object to the child thread.
Note: Objects used with this thread local must implement the Cloneable
interface and have a public clone
method.
Field Summary |
protected static ERXLogger |
log
logging support |
Method Summary |
protected Object |
childValue(Object parentValue)
Clones a copy of the parent object for the child thread.
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
log
protected static final ERXLogger log
- logging support
ERXCloneableThreadLocal
public ERXCloneableThreadLocal()
childValue
protected Object childValue(Object parentValue)
- Clones a copy of the parent object for the child thread.
The parentValue must implement the
Cloneable
interface and have a public clone
method.
- Parameters:
parentValue
- local object to the parent thread.
Copyright © 2002 – 2004 Project Wonder.