Annotation Interface ReferenceConstraint


@Retention(RUNTIME) @Target(TYPE) @Documented @Constraint(validatedBy=ReferenceValidator.class) public @interface ReferenceConstraint
Annotated ConfigBeanProxy class contains at least one String field, which value must point to key attribute of some other existing ConfigBeanProxy instance.
Use ReferenceConstraint.RemoteKey annotation on appropriate getters to define such fields.
This constraint is supported for ConfigBeanProxy only.
Author:
Martin Mares
  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Class
    Description
    static @interface 
    This annotation gets set only on getter method and in combination with ReferenceConstraint annotation on the class.
  • Required Element Summary

    Required Elements
    Modifier and Type
    Required Element
    Description
    boolean
    In GlassFish a lot of configurations are made in batch and its references could not be fulfilled during creation process.
  • Optional Element Summary

    Optional Elements
    Modifier and Type
    Optional Element
    Description
    Class<?>[]
     
     
    Class<? extends jakarta.validation.Payload>[]
     
  • Element Details

    • message

      String message
      Default:
      "Invalid reference in provided configuration."
    • groups

      Class<?>[] groups
      Default:
      {}
    • payload

      Class<? extends jakarta.validation.Payload>[] payload
      Default:
      {}
    • skipDuringCreation

      boolean skipDuringCreation
      In GlassFish a lot of configurations are made in batch and its references could not be fulfilled during creation process.