Skip to content

Commit b8a7ca3

Browse files
committed
Explain @Advice.Return
1 parent 2d7cbd8 commit b8a7ca3

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

agent/src/main/java/dev/aikido/agent/wrappers/spring/SpringWebfluxWrapper.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -99,6 +99,9 @@ public static Object onEnter(
9999
return res; // Return to analyze status code in OnMethodExit.
100100
}
101101

102+
/** onExit()
103+
* We can use @Advice.Return to overwrite the returned value of handle(...) i.e. to block requests.
104+
*/
102105
@Advice.OnMethodExit(onThrowable = Throwable.class, suppress = Throwable.class)
103106
public static void onExit(
104107
@Advice.Enter Object enterResult,

0 commit comments

Comments
 (0)