org.glassfish.jersey.servlet.internal
Class ThreadLocalNamedInvoker<T>
java.lang.Object
org.glassfish.jersey.servlet.internal.ThreadLocalInvoker<T>
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)
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ThreadLocalNamedInvoker
public ThreadLocalNamedInvoker(String name)
- Create an instance.
- Parameters:
name - the JNDI name at which an instance of T can be found.
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.