Interface ValidatableService

    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      <T> T execute​(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.