Package com.github.beothorn.agent.advice
Class AdviceInterceptMethod
java.lang.Object
com.github.beothorn.agent.advice.AdviceInterceptMethod
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.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voidexit(Executable methodCalled, Object self, Object[] allArguments, Object returnValueFromMethod) static voidinvoke(Executable methodCalled, Object self, Object[] allArguments, Object returnValueFromMethod)
-
Field Details
-
classFullName
-
method
-
methodToCall
-
isRecording
public static boolean isRecording
-
-
Constructor Details
-
AdviceInterceptMethod
public AdviceInterceptMethod()
-
-
Method Details
-
exit
@OnMethodExit public static void exit(@Origin Executable methodCalled, @This Object self, @AllArguments Object[] allArguments, @Return(typing=DYNAMIC) Object returnValueFromMethod) -
invoke
public static void invoke(Executable methodCalled, Object self, Object[] allArguments, Object returnValueFromMethod) throws IllegalAccessException, InvocationTargetException
-