public interface ViewFactoryCreator
Modifier and Type | Method and Description |
---|---|
ViewFactory |
createViewFactory(Expression viewId,
ExpressionParser expressionParser,
ConversionService conversionService,
BinderConfiguration binderConfiguration,
org.springframework.validation.Validator validator,
ValidationHintResolver validationHintResolver)
Create a view factory capable of creating
View objects that can render the view template with the
provided identifier. |
java.lang.String |
getViewIdByConvention(java.lang.String viewStateId)
Get the default id of the view to render in the provided view state by convention.
|
ViewFactory createViewFactory(Expression viewId, ExpressionParser expressionParser, ConversionService conversionService, BinderConfiguration binderConfiguration, org.springframework.validation.Validator validator, ValidationHintResolver validationHintResolver)
View
objects that can render the view template with the
provided identifier.viewId
- an expression that resolves the id of the view to renderexpressionParser
- an optional expression parser to use to resolve view expressionsconversionService
- an optional conversion service to use to format text valuesbinderConfiguration
- information on how the rendered view binds to a model that provides its datavalidator
- a global validator to invokevalidationHintResolver
- a custom ValidationHintResolver to usejava.lang.String getViewIdByConvention(java.lang.String viewStateId)
viewStateId
- the view state id