Interface ComponentValidatorManager
-
- All Known Implementing Classes:
DefaultComponentValidatorManager
public interface ComponentValidatorManager
Interface used for validatingComponent
metadata using a configurable set ofComponentValidator
entries. This is generally used as part of the initialization of theComponentRegistry
in 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 ofComponentValidator
to use to validate any component passed tovalidateComponent(Component, Errors)
.List<EndpointValidator>
getEndpointValidators()
The set ofEndpointValidator
to use to validate anyEndpoint
passed tovalidateEndpoint(Endpoint, Errors)
.org.springframework.validation.Errors
validate(Component<?> target)
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 Detail
-
validate
org.springframework.validation.Errors validate(Component<?> target)
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
default void validateComponent(Component<?> target, org.springframework.validation.Errors errors)
Method used to validateComponent
objects.- 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 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
-
-