@groovy.transform.Trait @groovy.transform.CompileStatic trait ValidatedService<T> extends Service<T>
A service that is validated by javax.validation
Type | Name and description |
---|---|
javax.validation.ParameterNameProvider |
parameterNameProvider The parameter name provided for this service |
Type Params | Return Type | Name and description |
---|---|---|
|
org.springframework.validation.Errors |
asErrors(java.lang.Object object, javax.validation.ConstraintViolationException e) Converts a ConstraintViolationException to errors |
|
org.springframework.validation.Errors |
asErrors(java.lang.Object object, java.util.Set<javax.validation.ConstraintViolation> constraintViolations) Converts a ConstraintViolationException to errors |
|
javax.validation.ValidatorFactory |
getValidatorFactory()
|
|
void |
javaxValidate(java.lang.Object instance, java.lang.reflect.Method method, java.lang.Object[] args) Validate the given method for the given arguments |
|
void |
validate(java.lang.Object instance, java.lang.reflect.Method method, java.lang.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 argumentsValidate the given method for the given arguments
instance
- The instancemethod
- The methodargs
- The arguments