Class BeanValidationHintResolver
java.lang.Object
org.springframework.webflow.validation.BeanValidationHintResolver
- All Implemented Interfaces:
ValidationHintResolver
A JSR-303 (Bean Validation) implementation of
ValidationHintResolver
that resolves String-based hints to a Class<?>
array.- Since:
- 2.4
- Author:
- Rossen Stoyanchev
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected Class<?>
handleUnresolvedHint
(Object model, String flowId, String stateId, String hint) Invoked when a hint could not be resolved.Class<?>[]
resolveValidationHints
(Object model, String flowId, String stateId, String[] hints) Resolve each hint as a fully qualified class name or the name of an innerClass
in the model type or the model or its parent types.
-
Constructor Details
-
BeanValidationHintResolver
public BeanValidationHintResolver()
-
-
Method Details
-
resolveValidationHints
public Class<?>[] resolveValidationHints(Object model, String flowId, String stateId, String[] hints) throws FlowExecutionException Resolve each hint as a fully qualified class name or the name of an innerClass
in the model type or the model or its parent types.- Specified by:
resolveValidationHints
in interfaceValidationHintResolver
- Parameters:
model
- the model objectflowId
- the current flow idstateId
- the current view state idhints
- the hints to resolve- Returns:
- the resolved hints or
null
- Throws:
FlowExecutionException
- if a hint is unresolved- See Also:
-
handleUnresolvedHint
protected Class<?> handleUnresolvedHint(Object model, String flowId, String stateId, String hint) throws FlowExecutionException Invoked when a hint could not be resolved. This implementation raises aFlowExecutionException
.- Parameters:
model
- the model object that will be validated using the hintsflowId
- the current flow idstateId
- the current state idhint
- the hint- Returns:
- the resolved hint
- Throws:
FlowExecutionException
-