Class 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 from JNDI.
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private java.lang.String name  
    • Constructor Summary

      Constructors 
      Constructor Description
      ThreadLocalNamedInvoker​(java.lang.String name)
      Create an instance.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.Object invoke​(java.lang.Object proxy, java.lang.reflect.Method method, java.lang.Object[] args)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • name

        private final java.lang.String name
    • Constructor Detail

      • ThreadLocalNamedInvoker

        public ThreadLocalNamedInvoker​(java.lang.String name)
        Create an instance.
        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