com.sun.jersey.server.impl.container.servlet
Class ThreadLocalNamedInvoker<T>

java.lang.Object
  extended by com.sun.jersey.server.impl.container.servlet.ThreadLocalInvoker<T>
      extended by com.sun.jersey.server.impl.container.servlet.ThreadLocalNamedInvoker<T>
All Implemented Interfaces:
java.lang.reflect.InvocationHandler

public class ThreadLocalNamedInvoker<T>
extends ThreadLocalInvoker<T>

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


Constructor Summary
ThreadLocalNamedInvoker(java.lang.String name)
           
 
Method Summary
 java.lang.Object invoke(java.lang.Object proxy, java.lang.reflect.Method method, java.lang.Object[] args)
           
 
Methods inherited from class com.sun.jersey.server.impl.container.servlet.ThreadLocalInvoker
get, getImmutableThreadLocal, getThreadLocal, set
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ThreadLocalNamedInvoker

public ThreadLocalNamedInvoker(java.lang.String name)
Parameters:
name - the JNDI name at which an instance of T can be found
Method Detail

invoke

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


Copyright © 2011 Sun Microsystems, Inc. All Rights Reserved.