ew-profiling, 1.0

be.eliwan.profiling.jdbc
Class ConnectionInvocationHandler

java.lang.Object
  extended by be.eliwan.profiling.jdbc.ConnectionInvocationHandler
All Implemented Interfaces:
InvocationHandler

public class ConnectionInvocationHandler
extends Object
implements InvocationHandler

Wrapping JDBC connection which can be used to profile the time spent communicating with the database.


Constructor Summary
ConnectionInvocationHandler(Connection delegate)
          Constructor.
 
Method Summary
 Object invoke(Object proxy, Method method, Object[] args)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ConnectionInvocationHandler

public ConnectionInvocationHandler(Connection delegate)
Constructor.

Parameters:
delegate - the "real" connection which is profiled.
Method Detail

invoke

public Object invoke(Object proxy,
                     Method method,
                     Object[] args)
              throws Throwable
Specified by:
invoke in interface InvocationHandler
Throws:
Throwable

ew-profiling, 1.0

Copyright © 2014. All rights reserved.