Annotation Type SelfValidating
-
@Documented @Target({TYPE,ANNOTATION_TYPE}) @Retention(RUNTIME) @Constraint(validatedBy=SelfValidatingValidator.class) public @interface SelfValidating
The annotated element has methods annotated bySelfValidation
. Those methods are executed on validation.
-
-
Element Detail
-
message
String message
- Default:
- ""
-
-
-
groups
Class<?>[] groups
- Default:
- {}
-
-
-
payload
Class<? extends javax.validation.Payload>[] payload
- Default:
- {}
-
-
-
escapeExpressions
boolean escapeExpressions
Escape EL expressions to avoid template injection attacks.This has serious security implications and you will have to escape the violation messages added to
ViolationCollector
appropriately.- See Also:
ViolationCollector.addViolation(String, Map)
,ViolationCollector.addViolation(String, String, Map)
,ViolationCollector.addViolation(String, Integer, String, Map)
- Default:
- true
-
-