Annotation Interface Validators


@Retention(RUNTIME) @Target({TYPE,PARAMETER}) public @interface Validators
Container annotation for declaring one or more ArgValidator types on a command type or a specific parameter.

This annotation is retained at runtime and can be discovered via reflection.

  • Required Element Summary

    Required Elements
    Modifier and Type
    Required Element
    Description
    Class<? extends ArgValidator<?>>[]
     
  • Element Details

    • value

      Class<? extends ArgValidator<?>>[] value
      Returns:
      the validator classes to apply