Class Jsr380Validator
- java.lang.Object
-
- io.fluxcapacitor.javaclient.tracking.handling.validation.Jsr380Validator
-
- All Implemented Interfaces:
Validator
public class Jsr380Validator extends Object implements Validator
This validator uses JSR 380 annotations. However, before attempting method and type validations it will first attempt field validations. This strategy prevents issues if one of the validated methods depends on one or more validated fields but those fields are invalid.
-
-
Constructor Summary
Constructors Constructor Description Jsr380Validator()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description <T> Optional<ValidationException>checkValidity(T object, Class<?>... groups)static Jsr380ValidatorcreateDefault()-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface io.fluxcapacitor.javaclient.tracking.handling.validation.Validator
assertValid, isValid
-
-
-
-
Method Detail
-
createDefault
public static Jsr380Validator createDefault()
-
checkValidity
public <T> Optional<ValidationException> checkValidity(T object, Class<?>... groups)
- Specified by:
checkValidityin interfaceValidator
-
-