Interface ViewFactoryCreator
- All Known Implementing Classes:
JsfViewFactoryCreator
,MvcViewFactoryCreator
public interface ViewFactoryCreator
A factory for ViewFactory objects. This is an SPI interface and conceals specific types of view factories from the
flow builder infrastructure.
-
Method Summary
Modifier and TypeMethodDescriptioncreateViewFactory
(Expression viewId, ExpressionParser expressionParser, ConversionService conversionService, BinderConfiguration binderConfiguration, org.springframework.validation.Validator validator, ValidationHintResolver validationHintResolver) Create a view factory capable of creatingView
objects that can render the view template with the provided identifier.getViewIdByConvention
(String viewStateId) Get the default id of the view to render in the provided view state by convention.
-
Method Details
-
createViewFactory
ViewFactory createViewFactory(Expression viewId, ExpressionParser expressionParser, ConversionService conversionService, BinderConfiguration binderConfiguration, org.springframework.validation.Validator validator, ValidationHintResolver validationHintResolver) Create a view factory capable of creatingView
objects that can render the view template with the provided identifier.- Parameters:
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 use- Returns:
- the view factory
-
getViewIdByConvention
Get the default id of the view to render in the provided view state by convention.- Parameters:
viewStateId
- the view state id- Returns:
- the default view id
-