Package org.opencms.db.timing
Class CmsProfilingInvocationHandler
- java.lang.Object
-
- org.opencms.db.timing.CmsProfilingInvocationHandler
-
- All Implemented Interfaces:
java.lang.reflect.InvocationHandler
public class CmsProfilingInvocationHandler extends java.lang.Object implements java.lang.reflect.InvocationHandler
Invocation handler used to measure method calls durations.
-
-
Constructor Summary
Constructors Constructor Description CmsProfilingInvocationHandler(java.lang.Object target, I_CmsProfilingHandler timingConsumer)
Creates a new handler instance.
-
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)
-
-
-
Constructor Detail
-
CmsProfilingInvocationHandler
public CmsProfilingInvocationHandler(java.lang.Object target, I_CmsProfilingHandler timingConsumer)
Creates a new handler instance.- Parameters:
target
- the object we are proxyingtimingConsumer
- the handler to which we send the measured data
-
-
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
- Specified by:
invoke
in interfacejava.lang.reflect.InvocationHandler
- Throws:
java.lang.Throwable
- See Also:
InvocationHandler.invoke(java.lang.Object, java.lang.reflect.Method, java.lang.Object[])
-
-