Class MethodLogger

    • Method Detail

      • entry

        public void entry​(MethodInvocation invocation)
        Invoked when a method is first entered
        Parameters:
        invocation - identifies method invoked as well as parameters passed to method
      • exit

        public void exit​(MethodInvocation invocation)
        Invoked when a method exits (possibly returning a value).
        Parameters:
        invocation - identifies method invocation and result value
      • fail

        public void fail​(MethodInvocation invocation,
                         Throwable t)
        Invoked when method invocation instead throws an exception.
        Parameters:
        invocation - identifies method invocation which failed
        t - exception throws by method invocation