Class ExecutionMonitor


  • public abstract class ExecutionMonitor
    extends java.lang.Object
    Interface specifying an execution monitor. Such an entity is notified every time a method is handled by the ProxyMethodHandler.
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      abstract void enteringMethod​(java.lang.Object instance, java.lang.reflect.Method method, java.lang.Object[] args)
      Notification when entering the invoke method of the ProxyMethodHandler.
      abstract void leavingMethod​(java.lang.Object instance, java.lang.reflect.Method method, java.lang.Object[] args, java.lang.Object returnValue)
      Notification when leaving the invoke method of the ProxyMethodHandler.
      abstract void throwingException​(java.lang.Object instance, java.lang.reflect.Method method, java.lang.Object[] args, java.lang.Exception exception)
      Notification when throwing an exception while executing patterns on called method.
      • Methods inherited from class java.lang.Object

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

    • Method Detail

      • enteringMethod

        public abstract void enteringMethod​(java.lang.Object instance,
                                            java.lang.reflect.Method method,
                                            java.lang.Object[] args)
        Notification when entering the invoke method of the ProxyMethodHandler.
        Parameters:
        instance - instance on which the method is called.
        method - called method.
        args - arguments passed to the called method.
      • throwingException

        public abstract void throwingException​(java.lang.Object instance,
                                               java.lang.reflect.Method method,
                                               java.lang.Object[] args,
                                               java.lang.Exception exception)
        Notification when throwing an exception while executing patterns on called method.
        Parameters:
        instance - instance on which the method is called.
        method - called method.
        args - arguments passed to the called method.
        exception - exception thrown by the pattern handling.
      • leavingMethod

        public abstract void leavingMethod​(java.lang.Object instance,
                                           java.lang.reflect.Method method,
                                           java.lang.Object[] args,
                                           java.lang.Object returnValue)
        Notification when leaving the invoke method of the ProxyMethodHandler.
        Parameters:
        instance - instance on which the method is called.
        method - called method.
        args - arguments passed to the called method.
        returnValue - value about to be returned by the method.