org.slf4j.impl
Class CopyOnInheritThreadLocal

java.lang.Object
  extended by java.lang.ThreadLocal<T>
      extended by java.lang.InheritableThreadLocal<HashMap<String,String>>
          extended by org.slf4j.impl.CopyOnInheritThreadLocal

public class CopyOnInheritThreadLocal
extends InheritableThreadLocal<HashMap<String,String>>

This class extends InheritableThreadLocal so that children threads get a copy of the parent's hashmap.

Author:
Ceki Gülcü

Constructor Summary
CopyOnInheritThreadLocal()
           
 
Method Summary
protected  HashMap<String,String> childValue(HashMap<String,String> parentValue)
          Child threads should get a copy of the parent's hashmap.
 
Methods inherited from class java.lang.ThreadLocal
get, initialValue, remove, set
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CopyOnInheritThreadLocal

public CopyOnInheritThreadLocal()
Method Detail

childValue

protected HashMap<String,String> childValue(HashMap<String,String> parentValue)
Child threads should get a copy of the parent's hashmap.

Overrides:
childValue in class InheritableThreadLocal<HashMap<String,String>>


Copyright © 2005-2009 QOS.ch. All Rights Reserved.