Interface ComponentValidatorManager

All Known Implementing Classes:
DefaultComponentValidatorManager

public interface ComponentValidatorManager
Interface used for validating Component metadata using a configurable set of ComponentValidator entries. This is generally used as part of the initialization of the ComponentRegistry in order to validate any components registered as part of the initialization of the registry.
Author:
Nick Crum (ncrum)
  • Method Details

    • validate

      org.springframework.validation.Errors validate(Component<?> target)
      The primary method of validating a target Component and its entire component tree. Returns an Errors that contains any validation errors discovered on the component or any descendents, if any were found.
      Parameters:
      target - the component to validate
      Returns:
      the Errors, which is empty if no errors were found
    • getComponentValidators

      List<ComponentValidator> getComponentValidators()
      The set of ComponentValidator to use to validate any component passed to validateComponent(Component, Errors).
      Returns:
      the set of validators
    • validateComponent

      default void validateComponent(Component<?> target, org.springframework.validation.Errors errors)
      Method used to validate Component objects.
      Parameters:
      target - the target component
      errors - the errors
    • getActionValidators

      List<ActionValidator> getActionValidators()
      The set of ActionValidator to use to validate any Action passed to validateAction(Action, Errors).
      Returns:
      the set of validators
    • validateAction

      default void validateAction(Action<?> target, org.springframework.validation.Errors errors)
      Method used to validate Action objects.
      Parameters:
      target - the target action
      errors - the errors
    • getEndpointValidators

      List<EndpointValidator> getEndpointValidators()
      The set of EndpointValidator to use to validate any Endpoint passed to validateEndpoint(Endpoint, Errors).
      Returns:
      the set of validators
    • validateEndpoint

      default void validateEndpoint(Endpoint<?> target, org.springframework.validation.Errors errors)
      Method used to validate Endpoint objects.
      Parameters:
      target - the target endpoint
      errors - the errors