com.atlassian.sal.confluence.executor
Class ConfluenceThreadLocalContextManager

java.lang.Object
  extended by com.atlassian.sal.confluence.executor.ConfluenceThreadLocalContextManager
All Implemented Interfaces:
com.atlassian.sal.core.executor.ThreadLocalContextManager

public class ConfluenceThreadLocalContextManager
extends Object
implements com.atlassian.sal.core.executor.ThreadLocalContextManager

Manages all thread local state for Confluence


Constructor Summary
ConfluenceThreadLocalContextManager()
           
 
Method Summary
 void clearThreadLocalContext()
          Clear the thread local context on the current thread
 Object getThreadLocalContext()
          Get the thread local context of the current thread
 void setThreadLocalContext(Object context)
          Set the thread local context on the current thread
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ConfluenceThreadLocalContextManager

public ConfluenceThreadLocalContextManager()
Method Detail

getThreadLocalContext

public Object getThreadLocalContext()
Get the thread local context of the current thread

Specified by:
getThreadLocalContext in interface com.atlassian.sal.core.executor.ThreadLocalContextManager
Returns:
The thread local context

setThreadLocalContext

public void setThreadLocalContext(Object context)
Set the thread local context on the current thread

Specified by:
setThreadLocalContext in interface com.atlassian.sal.core.executor.ThreadLocalContextManager
Parameters:
context - The context to set

clearThreadLocalContext

public void clearThreadLocalContext()
Clear the thread local context on the current thread

Specified by:
clearThreadLocalContext in interface com.atlassian.sal.core.executor.ThreadLocalContextManager


Copyright © 2003-2012 Atlassian. All Rights Reserved.