com.atlassian.sal.confluence.executor
Class ConfluenceThreadLocalContextManager

java.lang.Object
  extended by com.atlassian.sal.confluence.executor.ConfluenceThreadLocalContextManager
All Implemented Interfaces:
com.atlassian.sal.api.executor.ThreadLocalContextManager<com.atlassian.sal.confluence.executor.ConfluenceThreadLocalContextManager.ThreadLocalContext>

public class ConfluenceThreadLocalContextManager
extends java.lang.Object
implements com.atlassian.sal.api.executor.ThreadLocalContextManager<com.atlassian.sal.confluence.executor.ConfluenceThreadLocalContextManager.ThreadLocalContext>

Manages all thread local state for Confluence


Constructor Summary
ConfluenceThreadLocalContextManager()
           
 
Method Summary
 void clearThreadLocalContext()
          Clear the thread local context on the current thread
 com.atlassian.sal.confluence.executor.ConfluenceThreadLocalContextManager.ThreadLocalContext getThreadLocalContext()
          Get the thread local context of the current thread
 void setThreadLocalContext(com.atlassian.sal.confluence.executor.ConfluenceThreadLocalContextManager.ThreadLocalContext 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 com.atlassian.sal.confluence.executor.ConfluenceThreadLocalContextManager.ThreadLocalContext getThreadLocalContext()
Get the thread local context of the current thread

Specified by:
getThreadLocalContext in interface com.atlassian.sal.api.executor.ThreadLocalContextManager<com.atlassian.sal.confluence.executor.ConfluenceThreadLocalContextManager.ThreadLocalContext>
Returns:
The thread local context

setThreadLocalContext

public void setThreadLocalContext(com.atlassian.sal.confluence.executor.ConfluenceThreadLocalContextManager.ThreadLocalContext context)
Set the thread local context on the current thread

Specified by:
setThreadLocalContext in interface com.atlassian.sal.api.executor.ThreadLocalContextManager<com.atlassian.sal.confluence.executor.ConfluenceThreadLocalContextManager.ThreadLocalContext>
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.api.executor.ThreadLocalContextManager<com.atlassian.sal.confluence.executor.ConfluenceThreadLocalContextManager.ThreadLocalContext>


Copyright © 2003-2014 Atlassian. All Rights Reserved.