Project Wonder 2.0

er.extensions
Class ERXCloneableThreadLocal

java.lang.Object
  extended byjava.lang.ThreadLocal
      extended byjava.lang.InheritableThreadLocal
          extended byer.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
 
Constructor Summary
ERXCloneableThreadLocal()
           
 
Method Summary
protected  Object childValue(Object parentValue)
          Clones a copy of the parent object for the child thread.
 
Methods inherited from class java.lang.ThreadLocal
get, initialValue, set
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

log

protected static final ERXLogger log
logging support

Constructor Detail

ERXCloneableThreadLocal

public ERXCloneableThreadLocal()
Method Detail

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.

Last updated: Do, Dez 9, 2004 • 12:46 PM CET

Copyright © 2002 – 2004 Project Wonder.