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