InvocationContext interface is used to support information handling within and between interceptors. It is passed as the single argument to a method annotated with the @AroundInvoke annotation. It possesses several methods which can assist in the handling of interceptors. In this recipe we will focus on those methods which provide access to the target method's parameter list and use them to manipulate the parameters.
The basic approach for using an interceptor to validate a target method's parameters involves:
setParametersmethod to apply any changes to the parameters ...