@Trait @CompileStatic trait ValidatedService<T> extends Service<T>
A service that is validated by jakarta.validation
| Type | Name and description |
|---|---|
ParameterNameProvider |
parameterNameProviderThe parameter name provided for this service |
| Type Params | Return Type | Name and description |
|---|---|---|
|
Errors |
asErrors(Object object, ConstraintViolationException e)Converts a ConstraintViolationException to errors |
|
Errors |
asErrors(Object object, Set<ConstraintViolation> constraintViolations)Converts a ConstraintViolationException to errors |
|
ValidatorFactory |
getValidatorFactory()
|
|
void |
javaxValidate(Object instance, Method method, Object[] args)Validate the given method for the given arguments |
|
void |
validate(Object instance, Method method, Object[] args)Validate the given method for the given arguments |
The parameter name provided for this service
Converts a ConstraintViolationException to errors
object - The validated objecte - The exceptionConverts a ConstraintViolationException to errors
object - The validated objecte - The exception
Validate the given method for the given arguments
instance - The instancemethod - The methodargs - The arguments