com.liferay.portal.kernel.util
Class AutoResetThreadLocal<T>

java.lang.Object
  extended by java.lang.ThreadLocal<T>
      extended by com.liferay.portal.kernel.util.InitialThreadLocal<T>
          extended by com.liferay.portal.kernel.util.AutoResetThreadLocal<T>

public class AutoResetThreadLocal<T>
extends InitialThreadLocal<T>

View Source

Author:
Shuyang Zhou

Constructor Summary
AutoResetThreadLocal()
           
AutoResetThreadLocal(T initialValue)
           
 
Method Summary
protected  T initialValue()
           
 void set(T value)
           
 
Methods inherited from class java.lang.ThreadLocal
get, remove
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AutoResetThreadLocal

public AutoResetThreadLocal()

AutoResetThreadLocal

public AutoResetThreadLocal(T initialValue)
Method Detail

set

public void set(T value)
Overrides:
set in class java.lang.ThreadLocal<T>

initialValue

protected T initialValue()
Overrides:
initialValue in class InitialThreadLocal<T>