com.sun.jersey.server.impl
Class ThreadLocalInvoker<T>
java.lang.Object
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
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ThreadLocalInvoker
public ThreadLocalInvoker()
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.