Interface ConfigurationValidation


public interface ConfigurationValidation

Provide a Bean of this type to validate the compatibility of user configurations across different components within a workflow. Components of a workflow are the consumer binding, the workflow properties, and the producer binding.

For instance, you can fail startup when config-X on the consumer binding is not compatible with config-Y on the producer binding.

Multiple Beans of this type can coexist in the application context. At startup, every workflow is validated by all Beans of this type.

  • Method Details

    • validateConfiguration

      void validateConfiguration(List<ConsumerBinding> consumerBindings, WorkflowProperties workflowProperties, List<ProducerBinding> producerBindings) throws IllegalArgumentException
      Validate the compatibility of user configurations across different components within a workflow.
      Parameters:
      consumerBindings - properties of the input bindings from which this workflow consumes its messages.
      workflowProperties - Workflow configuration properties.
      producerBindings - properties of the output bindings from which this workflow delivers its messages.
      Throws:
      IllegalArgumentException