Annotation Type ValidBeanReference


@API(status=STABLE, since="0.1") @Target({CONSTRUCTOR,METHOD,FIELD,PARAMETER,ANNOTATION_TYPE}) @Retention(RUNTIME) @Documented @Constraint(validatedBy=ValidBeanReferenceValidator.class) @ReportAsSingleViolation public @interface ValidBeanReference
Validation for beans that require at least a valid bean reference. Validates the the bean, if non null, validates against on of the validation group sets defined through BeanReference annotations.
Since:
0.1
Version:
1.0, 2020-05
Author:
(w) Iker Hernaez
  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Class
    Description
    static class 
    Constraint validator for ValidBeanReference.
  • Optional Element Summary

    Optional Elements
    Modifier and Type
    Optional Element
    Description
    Class<?>[]
    Returns the validation groups.
    Returns the error message.
    Class<? extends javax.validation.Payload>[]
    Returns the validation client payload.
  • Element Details

    • message

      String message
      Returns the error message.
      Returns:
      The error message.
      Default:
      "{dev.orne.beans.ValidBeanReference.message}"
    • groups

      Class<?>[] groups
      Returns the validation groups.
      Returns:
      The validation groups.
      Default:
      {}
    • payload

      Class<? extends javax.validation.Payload>[] payload
      Returns the validation client payload.
      Returns:
      The validation client payload.
      Default:
      {}