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.
Constructor and Description |
---|
ERXCloneableThreadLocal() |
Modifier and Type | Method and Description |
---|---|
protected Object |
childValue(Object parentValue)
Clones a copy of the parent object for the child thread.
|
get, initialValue, remove, set, withInitial
protected Object childValue(Object parentValue)
Cloneable
interface and have a public clone
method.childValue
in class InheritableThreadLocal
parentValue
- local object to the parent thread.Copyright © 2002 – 2024 Project Wonder.