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 Summary
Modifier and TypeMethodDescriptionThe set ofComponentValidator
to use to validate any component passed tovalidateComponent(Component, Errors)
.The set ofEndpointValidator
to use to validate anyEndpoint
passed tovalidateEndpoint(Endpoint, Errors)
.org.springframework.validation.Errors
The primary method of validating a targetComponent
and its entire component tree.default void
validateAction
(Action<?> target, org.springframework.validation.Errors errors) Method used to validateAction
objects.default void
validateComponent
(Component<?> target, org.springframework.validation.Errors errors) Method used to validateComponent
objects.default void
validateEndpoint
(Endpoint<?> target, org.springframework.validation.Errors errors) Method used to validateEndpoint
objects.
-
Method Details
-
validate
The primary method of validating a targetComponent
and its entire component tree. Returns anErrors
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 ofComponentValidator
to use to validate any component passed tovalidateComponent(Component, Errors)
.- Returns:
- the set of validators
-
validateComponent
Method used to validateComponent
objects.- Parameters:
target
- the target componenterrors
- the errors
-
getActionValidators
List<ActionValidator> getActionValidators()- Returns:
- the set of validators
-
validateAction
Method used to validateAction
objects.- Parameters:
target
- the target actionerrors
- the errors
-
getEndpointValidators
List<EndpointValidator> getEndpointValidators()The set ofEndpointValidator
to use to validate anyEndpoint
passed tovalidateEndpoint(Endpoint, Errors)
.- Returns:
- the set of validators
-
validateEndpoint
Method used to validateEndpoint
objects.- Parameters:
target
- the target endpointerrors
- the errors
-