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 Detail

      • 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
      • 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
      • 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
      • 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