Annotation Type ReturnValue
-
@Retention(RUNTIME) @Target(PARAMETER) public @interface ReturnValueAssigns the return value of the instrumented method to a parameter of a probe method. The probe method can be annotated withInterception,PayloadInterceptionorAdditionalInterceptionwhoseinvokeOnargument is set toInvocationType.EXITorInvocationType.RETURN. The type of the annotated parameter must beObjector the declared type of the parameter of the instrumented method. The declared type can only be used if it can be resolved by the system class loader.If
invokeOnis set toInvocationType.EXITand the instrumented method throws an exception, the argument will benull.