com.sun.jersey.server.impl
Class ThreadLocalInvoker<T>

java.lang.Object
  extended by com.sun.jersey.server.impl.ThreadLocalInvoker<T>
All Implemented Interfaces:
InvocationHandler
Direct Known Subclasses:
ThreadLocalNamedInvoker

public class ThreadLocalInvoker<T>
extends Object
implements InvocationHandler

A proxy invocation handler that delegates all methods to a thread local instance


Constructor Summary
ThreadLocalInvoker()
           
 
Method Summary
 T get()
           
 ThreadLocal<T> getImmutableThreadLocal()
           
 ThreadLocal<T> getThreadLocal()
           
 Object invoke(Object proxy, Method method, Object[] args)
           
 void set(T threadLocalInstance)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ThreadLocalInvoker

public ThreadLocalInvoker()
Method Detail

set

public void set(T threadLocalInstance)

get

public T get()

getThreadLocal

public ThreadLocal<T> getThreadLocal()

getImmutableThreadLocal

public ThreadLocal<T> getImmutableThreadLocal()

invoke

public Object invoke(Object proxy,
                     Method method,
                     Object[] args)
              throws Throwable
Specified by:
invoke in interface InvocationHandler
Throws:
Throwable


Copyright © 2013 Oracle Corporation. All Rights Reserved.