org.tinyjee.maven.dim.sh
Class HighlighterThreadLocal
java.lang.Object
java.lang.ThreadLocal<SoftReference<HighlighterScriptFacade>>
org.tinyjee.maven.dim.sh.HighlighterThreadLocal
public class HighlighterThreadLocal
- extends ThreadLocal<SoftReference<HighlighterScriptFacade>>
Implements a thread local that is capable of caching the thread bound script facade in a thread safe way.
- Version:
- 1.0
- Author:
- Juergen_Kellerer, 2010-09-03
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
HighlighterThreadLocal
public HighlighterThreadLocal()
initialValue
protected SoftReference<HighlighterScriptFacade> initialValue()
-
- Overrides:
initialValue
in class ThreadLocal<SoftReference<HighlighterScriptFacade>>
getHighlighter
public HighlighterScriptFacade getHighlighter()
- Returns a thread bound, script facade.
- Returns:
- a thread bound, script facade.