Class AdviceInterceptConstructorMethod


  • public class AdviceInterceptConstructorMethod
    extends java.lang.Object
    This advice is supposed to be injected on constructor. It will call the interceptor method passing the constructor call. This advice is injected at the end of the method so the return can be also passed along.
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static void exit​(java.lang.Object self, java.lang.reflect.Executable methodCalled, java.lang.Object[] allArguments)  
      static void invoke​(java.lang.reflect.Executable methodCalled, java.lang.Object self, java.lang.Object[] allArguments)  
      • 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

      • AdviceInterceptConstructorMethod

        public AdviceInterceptConstructorMethod()
    • Method Detail

      • exit

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

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