AOP currently supportsBefore, Around, and After advice. We would also like to support AfterThrows (invoked after the advised method throws a Throwable) and AfterFinally (invoked after the advised method regardless of whether an exception was thrown).
Visually, the order of these operations looks something like this:
try {
// Execute Before advice
advisedObject.advisedMethod(); // Execute Around advice
// Execute After advice
} catch (Throwable tr) {
// Execute AfterThrows advice
} finally {
// Execute AfterFinally advice
}
Thia new advice should be supported by both AdvisedJdkDynamicProxy and AdvisedDexMakerProxy.
AOP currently supports
Before,Around, andAfteradvice. We would also like to supportAfterThrows(invoked after the advised method throws aThrowable) andAfterFinally(invoked after the advised method regardless of whether an exception was thrown).Visually, the order of these operations looks something like this:
Thia new advice should be supported by both
AdvisedJdkDynamicProxyandAdvisedDexMakerProxy.