Interface ValidatableService
-
- All Known Implementing Classes:
DefaultValidatableService
public interface ValidatableServiceInterface to process the validatable supplier and throws aValidationExceptionwith the ValidationErrors when errors > 0.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description <T> Texecute(java.util.function.Supplier<T> validatable)Executes the validatable supplier to collect any validation error after execution
-
-
-
Method Detail
-
execute
<T> T execute(java.util.function.Supplier<T> validatable)
Executes the validatable supplier to collect any validation error after execution- Parameters:
validatable- the validatable supplier.- Returns:
- the expected result after successful validation
- Throws:
ValidationException- when there are validation errors after completion of the given supplier.
-
-