View Javadoc

1   package com.atlassian.sal.core.executor;
2   
3   public class StubThreadLocalContextManager implements ThreadLocalContextManager
4   {
5       private final ThreadLocal<Object> context = new ThreadLocal<Object>();
6   
7       public Object getThreadLocalContext()
8       {
9           return context.get();
10      }
11  
12      public void setThreadLocalContext(Object context)
13      {
14          this.context.set(context);
15      }
16  
17      public void clearThreadLocalContext()
18      {
19          this.context.remove();
20      }
21  }