@Documented @Retention(value=RUNTIME) @Target(value=METHOD) public static @interface Advice.OnMethodExit
Indicates that this method should be inlined before the matched method is invoked. Any class must declare at most one method with this annotation. The annotated method must be static.
The annotated method can imply to not be invoked when the instrumented method terminates exceptionally by
setting the onThrowable()
property.
Advice
,
Advice.Argument
,
Advice.This
,
Advice.Enter
,
Advice.Return
,
Advice.Thrown
Modifier and Type | Optional Element and Description |
---|---|
boolean |
onThrowable
Indicates that the advise method should also be called when a method terminates exceptionally.
|
Class<? extends Throwable> |
suppress
Indicates that this advice should suppress any
Throwable type being thrown during the advice's execution. |
Copyright © 2014–2016. All rights reserved.