@MinMuleVersion("4.1") @Target({TYPE,METHOD}) @Retention(RUNTIME) @Documented public @interface Validator
Stereotype annotation to mark that one or more operations are validators.

Any operation reached by this annotation must:

  • Have a void return type
  • Declare that it throws at least one Error which is MuleErrors.VALIDATION or has it as parent
This annotation can either be used at the method level (signaling that the stereotype applies to that specific operation) or to the class level (signaling that all operations in that class have that stereotype, unless overridden by a particular operation).
Since:
1.0