ew-profiling, 1.0

be.eliwan.profiling.jdbc
Class ProfilingInvocationHandler

java.lang.Object
  extended by 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.


Constructor Summary
ProfilingInvocationHandler(String groupPrefix, Object 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

ProfilingInvocationHandler

public ProfilingInvocationHandler(String groupPrefix,
                                  Object delegate)
Constructor.

Parameters:
groupPrefix - group prefix
delegate - the "real" prepared statement 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.