Class AbstractMvcViewFactory
java.lang.Object
org.springframework.webflow.mvc.view.AbstractMvcViewFactory
- All Implemented Interfaces:
ViewFactory
- Direct Known Subclasses:
ServletMvcViewFactory
Base class for mvc view factories.
- Author:
- Keith Donald
-
Constructor Summary
ConstructorsConstructorDescriptionAbstractMvcViewFactory(Expression viewId, FlowViewResolver viewResolver, ExpressionParser expressionParser, ConversionService conversionService, BinderConfiguration binderConfiguration, org.springframework.validation.MessageCodesResolver messageCodesResolver) Creates a new MVC view factory. -
Method Summary
Modifier and TypeMethodDescriptionprotected abstract AbstractMvcViewcreateMvcView(org.springframework.web.servlet.View view, RequestContext context) Abstract factory method subclasses should implement to return the concrete MVC view implementation.getView(RequestContext context) Get the view to render for this request.voidsetEventIdParameterName(String eventIdParameterName) voidsetFieldMarkerPrefix(String fieldMarkerPrefix) voidsetValidationHintResolver(ValidationHintResolver validationHintResolver) voidsetValidator(org.springframework.validation.Validator validator)
-
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 expressionviewResolver- the resolver to resolve the View implementationexpressionParser- the expression parserconversionService- the conversion servicebinderConfiguration- the model binding configuration
-
-
Method Details
-
setEventIdParameterName
-
setFieldMarkerPrefix
-
setValidator
public void setValidator(org.springframework.validation.Validator validator) -
setValidationHintResolver
-
getView
Description copied from interface:ViewFactoryGet the view to render for this request.- Specified by:
getViewin interfaceViewFactory- 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 implementationcontext- the current request context- Returns:
- the mvc view
-