public class DefaultValidatableService extends java.lang.Object implements ValidatableService
ValidatableService.
This implementation executes the validatable supplier and then checks if there are errors registered.
If there are errors present in current ValidationErrors, then it throws a validation exception with the list of Errors.| Constructor and Description |
|---|
DefaultValidatableService() |
| Modifier and Type | Method and Description |
|---|---|
<T> T |
execute(java.util.function.Supplier<T> validatable)
Executes the validatable supplier to collect any validation error after execution
|
protected ValidationErrorsProvider |
getValidationErrorsProvider() |
void |
setValidationErrorsProvider(ValidationErrorsProvider validationErrorsProvider) |
public <T> T execute(java.util.function.Supplier<T> validatable)
ValidatableServiceexecute in interface ValidatableServicevalidatable - the validatable supplier.protected ValidationErrorsProvider getValidationErrorsProvider()
public void setValidationErrorsProvider(ValidationErrorsProvider validationErrorsProvider)
Copyright © 2018 SAP SE. All Rights Reserved.