Class AdviceInterceptMethod


  • public class AdviceInterceptMethod
    extends java.lang.Object
    This advice is supposed to be injected on methods. It will call the interceptor method passing the method call. This advice is injected at the end of the constructor so the new instance is already created.
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static void exit​(java.lang.reflect.Executable methodCalled, java.lang.Object self, java.lang.Object[] allArguments, java.lang.Object returnValueFromMethod)  
      static void invoke​(java.lang.reflect.Executable methodCalled, java.lang.Object self, java.lang.Object[] allArguments, java.lang.Object returnValueFromMethod)  
      • Methods inherited from class java.lang.Object

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

      • classFullName

        public static java.lang.String classFullName
      • method

        public static java.lang.String method
      • methodToCall

        public static java.lang.reflect.Method methodToCall
      • isRecording

        public static boolean isRecording
    • Constructor Detail

      • AdviceInterceptMethod

        public AdviceInterceptMethod()
    • Method Detail

      • exit

        @OnMethodExit
        public static void exit​(@Origin
                                java.lang.reflect.Executable methodCalled,
                                @This
                                java.lang.Object self,
                                @AllArguments
                                java.lang.Object[] allArguments,
                                @Return(typing=DYNAMIC)
                                java.lang.Object returnValueFromMethod)
      • invoke

        public static void invoke​(java.lang.reflect.Executable methodCalled,
                                  java.lang.Object self,
                                  java.lang.Object[] allArguments,
                                  java.lang.Object returnValueFromMethod)
                           throws java.lang.IllegalAccessException,
                                  java.lang.reflect.InvocationTargetException
        Throws:
        java.lang.IllegalAccessException
        java.lang.reflect.InvocationTargetException