@groovy.transform.Trait @groovy.transform.CompileStatic trait ValidatedService<T> extends Service<T>
A service that is validated by javax.validation
Modifiers | Name | Description |
---|---|---|
private java.util.Map<java.lang.reflect.Method, javax.validation.executable.ExecutableValidator> |
executableValidatorMap |
|
private javax.validation.ParameterNameProvider |
parameterNameProvider |
The parameter name provided for this service |
private javax.validation.ValidatorFactory |
validatorFactoryInstance |
The validator factory |
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
The validator factory
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