Interface ComponentValidatorManager
-
- All Known Implementing Classes:
DefaultComponentValidatorManager
public interface ComponentValidatorManagerInterface used for validatingComponentmetadata using a configurable set ofComponentValidatorentries. This is generally used as part of the initialization of theComponentRegistryin order to validate any components registered as part of the initialization of the registry.- Author:
- Nick Crum (ncrum)
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description List<ActionValidator>getActionValidators()List<ComponentValidator>getComponentValidators()The set ofComponentValidatorto use to validate any component passed tovalidateComponent(Component, Errors).List<EndpointValidator>getEndpointValidators()The set ofEndpointValidatorto use to validate anyEndpointpassed tovalidateEndpoint(Endpoint, Errors).org.springframework.validation.Errorsvalidate(Component<?> target)The 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 Detail
-
validate
org.springframework.validation.Errors validate(Component<?> target)
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
default void validateComponent(Component<?> target, org.springframework.validation.Errors errors)
Method used to validateComponentobjects.- Parameters:
target- the target componenterrors- the errors
-
getActionValidators
List<ActionValidator> getActionValidators()
- Returns:
- the set of validators
-
validateAction
default void validateAction(Action<?> target, org.springframework.validation.Errors errors)
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
-
-