com.atlassian.httpclient.plugin
Class OsgiThreadLocalContextManager<C>

java.lang.Object
  extended by com.atlassian.httpclient.plugin.OsgiThreadLocalContextManager<C>
All Implemented Interfaces:
ThreadLocalContextManager<C>, org.springframework.beans.factory.DisposableBean

public final class OsgiThreadLocalContextManager<C>
extends java.lang.Object
implements ThreadLocalContextManager<C>, org.springframework.beans.factory.DisposableBean


Constructor Summary
OsgiThreadLocalContextManager(org.osgi.framework.BundleContext bundleContext)
           
 
Method Summary
 void destroy()
           
 C getThreadLocalContext()
           
 void resetThreadLocalContext()
           
 void setThreadLocalContext(C context)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

OsgiThreadLocalContextManager

public OsgiThreadLocalContextManager(org.osgi.framework.BundleContext bundleContext)
Method Detail

getThreadLocalContext

public C getThreadLocalContext()
Specified by:
getThreadLocalContext in interface ThreadLocalContextManager<C>

setThreadLocalContext

public void setThreadLocalContext(C context)
Specified by:
setThreadLocalContext in interface ThreadLocalContextManager<C>

resetThreadLocalContext

public void resetThreadLocalContext()
Specified by:
resetThreadLocalContext in interface ThreadLocalContextManager<C>

destroy

public void destroy()
             throws java.lang.Exception
Specified by:
destroy in interface org.springframework.beans.factory.DisposableBean
Throws:
java.lang.Exception


Copyright © 2012-2013 Atlassian. All Rights Reserved.