Interface ValidatableService

All Known Implementing Classes:
DefaultValidatableService

public interface ValidatableService
Interface to process the validatable supplier and throws a ValidationException with the ValidationErrors when errors > 0.
  • Method Summary

    Modifier and Type
    Method
    Description
    <T> T
    execute(Supplier<T> validatable)
    Executes the validatable supplier to collect any validation error after execution
  • Method Details

    • execute

      <T> T execute(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.