Annotation Interface BindParameter


@Target(PARAMETER) @Retention(RUNTIME) public @interface BindParameter
Annotates parameters to any @Pointcut advice method (@IsEnabled, @OnBefore, @OnReturn, @OnThrow, @OnAfter).

When the advice method is called, the parameters passed to the method matched by the Pointcut are bound to these parameters.

There cannot be more @BindParameter parameters than the number of arguments passed to the Pointcut method. If ".." is used at the end of Pointcut.methodParameterTypes() and the number of arguments is unknown, then BindParameterArray can be used to bind all arguments to a single parameter of type Object[].