public interface ComponentValidatorManager
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.Modifier and Type | Method and Description |
---|---|
List<ActionValidator> |
getActionValidators()
|
List<ComponentValidator> |
getComponentValidators()
The set of
ComponentValidator to use to validate any component passed to
validateComponent(Component, Errors) . |
List<EndpointValidator> |
getEndpointValidators()
The set of
EndpointValidator to use to validate any Endpoint passed to
validateEndpoint(Endpoint, Errors) . |
org.springframework.validation.Errors |
validate(Component<?> target)
The primary method of validating a target
Component and its entire component tree. |
default void |
validateAction(Action<?> target,
org.springframework.validation.Errors errors)
Method used to validate
Action objects. |
default void |
validateComponent(Component<?> target,
org.springframework.validation.Errors errors)
Method used to validate
Component objects. |
default void |
validateEndpoint(Endpoint<?> target,
org.springframework.validation.Errors errors)
Method used to validate
Endpoint objects. |
org.springframework.validation.Errors validate(Component<?> 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.target
- the component to validateErrors
, which is empty if no errors were foundList<ComponentValidator> getComponentValidators()
ComponentValidator
to use to validate any component passed to
validateComponent(Component, Errors)
.default void validateComponent(Component<?> target, org.springframework.validation.Errors errors)
Component
objects.target
- the target componenterrors
- the errorsList<ActionValidator> getActionValidators()
default void validateAction(Action<?> target, org.springframework.validation.Errors errors)
Action
objects.target
- the target actionerrors
- the errorsList<EndpointValidator> getEndpointValidators()
EndpointValidator
to use to validate any Endpoint
passed to
validateEndpoint(Endpoint, Errors)
.Copyright © 2021. All rights reserved.