org.glassfish.jersey.servlet.internal
Class ThreadLocalInvoker<T>

java.lang.Object
  extended by org.glassfish.jersey.servlet.internal.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.

Author:
Paul Sandoz (paul.sandoz at oracle.com)

Constructor Summary
ThreadLocalInvoker()
           
 
Method Summary
 T get()
           
 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()

invoke

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


Copyright © 2007-2014, Oracle and/or its affiliates. All Rights Reserved. Use is subject to license terms.