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 ofComponentValidatorto use to validate any component passed tovalidateComponent(Component, Errors).The set ofEndpointValidatorto use to validate anyEndpointpassed tovalidateEndpoint(Endpoint, Errors).org.springframework.validation.ErrorsThe primary method of validating a targetComponentand its entire component tree.default voidvalidateAction(Action<?> target, org.springframework.validation.Errors errors) Method used to validateActionobjects.default voidvalidateComponent(Component<?> target, org.springframework.validation.Errors errors) Method used to validateComponentobjects.default voidvalidateEndpoint(Endpoint<?> target, org.springframework.validation.Errors errors) Method used to validateEndpointobjects.
-
Method Details
-
validate
The primary method of validating a targetComponentand its entire component tree. Returns anErrorsthat 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 ofComponentValidatorto use to validate any component passed tovalidateComponent(Component, Errors).- Returns:
- the set of validators
-
validateComponent
Method used to validateComponentobjects.- Parameters:
target- the target componenterrors- the errors
-
getActionValidators
List<ActionValidator> getActionValidators()- Returns:
- the set of validators
-
validateAction
Method used to validateActionobjects.- Parameters:
target- the target actionerrors- the errors
-
getEndpointValidators
List<EndpointValidator> getEndpointValidators()The set ofEndpointValidatorto use to validate anyEndpointpassed tovalidateEndpoint(Endpoint, Errors).- Returns:
- the set of validators
-
validateEndpoint
Method used to validateEndpointobjects.- Parameters:
target- the target endpointerrors- the errors
-