Class 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.

    • 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)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • CmsProfilingInvocationHandler

        public CmsProfilingInvocationHandler​(java.lang.Object target,
                                             I_CmsProfilingHandler timingConsumer)
        Creates a new handler instance.

        Parameters:
        target - the object we are proxying
        timingConsumer - 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 interface java.lang.reflect.InvocationHandler
        Throws:
        java.lang.Throwable
        See Also:
        InvocationHandler.invoke(java.lang.Object, java.lang.reflect.Method, java.lang.Object[])