@Documented
@Target(value=TYPE)
public @interface ArgumentProcessor
An argument processor method has the argument type as its first
parameter. Only primitive, String
, and Object
types are
allowed. In some cases, the type accepted by the argument processor method
can be extended using the ProcessAlso
annotation. At runtime, the
second parameter of the argument processor will contain the value of the
argument being processed.
Additional information (e.g. position) about the argument can be obtained
using the ArgumentContext
interface. To use it, an argument processor
method must have a parameter of type ArgumentContext
. Other allowed
contexts are StaticContext
, DynamicContext
, and
ClassContext
.
All argument processor methods must be static, may not return any values, and may not throw any exceptions.