Package com.github.beothorn.agent.advice
Class AdviceInterceptConstructorMethod
- java.lang.Object
-
- com.github.beothorn.agent.advice.AdviceInterceptConstructorMethod
-
public class AdviceInterceptConstructorMethod extends java.lang.ObjectThis 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.
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringclassFullNamestatic booleanisRecordingstatic java.lang.Stringmethodstatic java.lang.reflect.MethodmethodToCall
-
Constructor Summary
Constructors Constructor Description AdviceInterceptConstructorMethod()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static voidexit(java.lang.Object self, java.lang.reflect.Executable methodCalled, java.lang.Object[] allArguments)static voidinvoke(java.lang.reflect.Executable methodCalled, java.lang.Object self, java.lang.Object[] allArguments)
-
-
-
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.IllegalAccessExceptionjava.lang.reflect.InvocationTargetException
-
-