Package dev.orne.beans
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
Modifier and TypeClassDescriptionstatic class
Constraint validator forValidBeanReference
. -
Optional Element Summary
-
Element Details
-
message
String messageReturns the error message.- Returns:
- The error message.
- Default:
- "{dev.orne.beans.ValidBeanReference.message}"
-
groups
Class<?>[] groupsReturns the validation groups.- Returns:
- The validation groups.
- Default:
- {}
-
payload
Class<? extends javax.validation.Payload>[] payloadReturns the validation client payload.- Returns:
- The validation client payload.
- Default:
- {}
-