Redirectors are methods that can replace method invocations, field accesses, object creation, and instanceof
checks. Redirectors are declared by @Redirect
annotations and generally look like this:
@Redirect(method = "${signatureOfMethodInWhichToRedirect}", at = @At(value = "${injectionPointReference}", target = "${signature}")) public ReturnType redirectSomeMethod(Arg0Type arg0, Arg1Type arg1) { MyClass.doMyComputations(); return computeSomethingElse(); }
Refer to the specific redirection tutorials for information about injection point references: