This is how I usually look at it.
try { //@Before method(); //@AfterReturning } catch(Throwable t) { //@AfterThrowing } finally { //@After }
@Around is a kind of beast. Since you choose when to call the target, you can catch any Exception , it can throw . Therefore, you can easily wrap the call in try-catch-finally and gain access to all and all the connection points mentioned earlier.
I assume that when you say "done," you mean "done to such an extent that an exception has been thrown."
Another important thing for you is the @Order annotation. Higher @Order values ββare found first on the front side, and they work independently backward. Make sure you keep this in mind when combining several tips for the same purpose.
nicholas.hauschild
source share