Interface InvokerValidation


public interface InvokerValidation
Includes methods for validating invokers during @Validation.
Since:
5.0
  • Method Details

    • ensureAsyncHandlerExists

      default void ensureAsyncHandlerExists(Class<?> asyncType)
      Ensures that an async handler exists for the given async type. If it does not exist, registers a deployment problem as if Messages.error(Exception) was called.
      Parameters:
      asyncType - the required async type, must not be null
    • ensureAsyncHandlerExists

      void ensureAsyncHandlerExists(Class<?> asyncType, Supplier<String> message)
      Ensures that an async handler exists for the given async type. If it does not exist, registers a deployment problem as if Messages.error(Exception) was called. The deployment problem includes the given message in a suitable, implementation-defined manner.
      Parameters:
      asyncType - the required async type, must not be null
      message - supplier of the error message, must not be null but may return null