com.atlassian.sal.jira.executor
Class JiraThreadLocalContextManager

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

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

Manages the thread local state for JIRA


Constructor Summary
JiraThreadLocalContextManager(JiraAuthenticationContext authenticationContext, com.atlassian.multitenant.TenantReference tenantReference, VelocityRequestContextFactory velocityRequestContextFactory)
           
 
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

JiraThreadLocalContextManager

public JiraThreadLocalContextManager(JiraAuthenticationContext authenticationContext,
                                     com.atlassian.multitenant.TenantReference tenantReference,
                                     VelocityRequestContextFactory velocityRequestContextFactory)
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 © 2002-2012 Atlassian. All Rights Reserved.