Class AbstractMvcViewFactory

java.lang.Object
org.springframework.webflow.mvc.view.AbstractMvcViewFactory
All Implemented Interfaces:
ViewFactory
Direct Known Subclasses:
ServletMvcViewFactory

public abstract class AbstractMvcViewFactory extends Object implements ViewFactory
Base class for mvc view factories.
Author:
Keith Donald
  • Constructor Details

    • AbstractMvcViewFactory

      public AbstractMvcViewFactory(Expression viewId, FlowViewResolver viewResolver, ExpressionParser expressionParser, ConversionService conversionService, BinderConfiguration binderConfiguration, org.springframework.validation.MessageCodesResolver messageCodesResolver)
      Creates a new MVC view factory.
      Parameters:
      viewId - the id of the view as an expression
      viewResolver - the resolver to resolve the View implementation
      expressionParser - the expression parser
      conversionService - the conversion service
      binderConfiguration - the model binding configuration
  • Method Details

    • setEventIdParameterName

      public void setEventIdParameterName(String eventIdParameterName)
    • setFieldMarkerPrefix

      public void setFieldMarkerPrefix(String fieldMarkerPrefix)
    • setValidator

      public void setValidator(org.springframework.validation.Validator validator)
    • setValidationHintResolver

      public void setValidationHintResolver(ValidationHintResolver validationHintResolver)
    • getView

      public View getView(RequestContext context)
      Description copied from interface: ViewFactory
      Get the view to render for this request.
      Specified by:
      getView in interface ViewFactory
      Parameters:
      context - the flow execution request context.
      Returns:
      the view to render
    • createMvcView

      protected abstract AbstractMvcView createMvcView(org.springframework.web.servlet.View view, RequestContext context)
      Abstract factory method subclasses should implement to return the concrete MVC view implementation.
      Parameters:
      view - the actual resolved view implementation
      context - the current request context
      Returns:
      the mvc view