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 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 creating View objects that can render the view template with the provided identifier.
      Parameters:
      viewId - an expression that resolves the id of the view to render
      expressionParser - an optional expression parser to use to resolve view expressions
      conversionService - an optional conversion service to use to format text values
      binderConfiguration - information on how the rendered view binds to a model that provides its data
      validator - a global validator to invoke
      validationHintResolver - a custom ValidationHintResolver to use
      Returns:
      the view factory
    • getViewIdByConvention

      String getViewIdByConvention(String viewStateId)
      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