Interface ViewFactoryCreator

All Known Implementing Classes:
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 Type
    Method
    Description
    createViewFactory(org.springframework.binding.expression.Expression viewId, org.springframework.binding.expression.ExpressionParser expressionParser, org.springframework.binding.convert.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.
    Get the default id of the view to render in the provided view state by convention.
  • Method Details

    • createViewFactory

      ViewFactory createViewFactory(org.springframework.binding.expression.Expression viewId, org.springframework.binding.expression.ExpressionParser expressionParser, org.springframework.binding.convert.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