be.eliwan.profiling.jdbc
Class ConnectionInvocationHandler
java.lang.Object
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.
ConnectionInvocationHandler
public ConnectionInvocationHandler(Connection delegate)
- Constructor.
- Parameters:
delegate - the "real" connection which is profiled.
invoke
public Object invoke(Object proxy,
Method method,
Object[] args)
throws Throwable
- Specified by:
invoke in interface InvocationHandler
- Throws:
Throwable
Copyright © 2014. All rights reserved.