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

java.lang.Object
  extended by org.glassfish.jersey.servlet.internal.ThreadLocalInvoker<T>
      extended by org.glassfish.jersey.servlet.internal.ThreadLocalNamedInvoker<T>
All Implemented Interfaces:
InvocationHandler

public class ThreadLocalNamedInvoker<T>
extends ThreadLocalInvoker<T>

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

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

Constructor Summary
ThreadLocalNamedInvoker(String name)
          Create an instance.
 
Method Summary
 Object invoke(Object proxy, Method method, Object[] args)
           
 
Methods inherited from class org.glassfish.jersey.servlet.internal.ThreadLocalInvoker
get, set
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ThreadLocalNamedInvoker

public ThreadLocalNamedInvoker(String name)
Create an instance.

Parameters:
name - the JNDI name at which an instance of T can be found.
Method Detail

invoke

public Object invoke(Object proxy,
                     Method method,
                     Object[] args)
              throws Throwable
Specified by:
invoke in interface InvocationHandler
Overrides:
invoke in class ThreadLocalInvoker<T>
Throws:
Throwable


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