be.eliwan.profiling.jdbc
Class ProfilingInvocationHandler
java.lang.Object
be.eliwan.profiling.jdbc.ProfilingInvocationHandler
- All Implemented Interfaces:
- InvocationHandler
public class ProfilingInvocationHandler
- extends Object
- implements InvocationHandler
Wrapping JDBC object which can be used to profile the time spent communicating with the database.
ProfilingInvocationHandler
public ProfilingInvocationHandler(String groupPrefix,
Object delegate)
- Constructor.
- Parameters:
groupPrefix - group prefixdelegate - the "real" prepared statement 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.