Class LuteceConnectionProxy

  • All Implemented Interfaces:
    java.lang.reflect.InvocationHandler

    public class LuteceConnectionProxy
    extends java.lang.Object
    implements java.lang.reflect.InvocationHandler
    LuteceConnectionProxy : proxy implementation of LuteceConnection This class should be removed when java5 support is dropped.
    • 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)
      Catches close() and closeConnection() method.
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • 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
        Catches close() and closeConnection() method. close() calls _pool.freeConnection, and closeConnection() calls _connection.close().
        Specified by:
        invoke in interface java.lang.reflect.InvocationHandler
        Parameters:
        proxy - the proxy
        method - the method
        args - the args
        Returns:
        the object
        Throws:
        java.lang.Throwable - the throwable