Annotation Interface ReferenceConstraint
@Retention(RUNTIME)
@Target(TYPE)
@Documented
@Constraint(validatedBy=ReferenceValidator.class)
public @interface ReferenceConstraint
Annotated
Use
This constraint is supported for
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 ClassesModifier and TypeClassDescriptionstatic @interfaceThis annotation gets set only on getter method and in combination withReferenceConstraintannotation on the class. -
Required Element Summary
Required ElementsModifier and TypeRequired ElementDescriptionbooleanIn GlassFish a lot of configurations are made in batch and its references could not be fulfilled during creation process. -
Optional Element Summary
Optional Elements
-
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 skipDuringCreationIn GlassFish a lot of configurations are made in batch and its references could not be fulfilled during creation process.
-