public abstract class AbstractMvcViewFactory extends java.lang.Object implements ViewFactory
Constructor and Description |
---|
AbstractMvcViewFactory(Expression viewId,
FlowViewResolver viewResolver,
ExpressionParser expressionParser,
ConversionService conversionService,
BinderConfiguration binderConfiguration,
org.springframework.validation.MessageCodesResolver messageCodesResolver)
Creates a new MVC view factory.
|
Modifier and Type | Method and Description |
---|---|
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.
|
View |
getView(RequestContext context)
Get the view to render for this request.
|
void |
setEventIdParameterName(java.lang.String eventIdParameterName) |
void |
setFieldMarkerPrefix(java.lang.String fieldMarkerPrefix) |
void |
setValidationHintResolver(ValidationHintResolver validationHintResolver) |
void |
setValidator(org.springframework.validation.Validator validator) |
public AbstractMvcViewFactory(Expression viewId, FlowViewResolver viewResolver, ExpressionParser expressionParser, ConversionService conversionService, BinderConfiguration binderConfiguration, org.springframework.validation.MessageCodesResolver messageCodesResolver)
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 configurationpublic void setEventIdParameterName(java.lang.String eventIdParameterName)
public void setFieldMarkerPrefix(java.lang.String fieldMarkerPrefix)
public void setValidator(org.springframework.validation.Validator validator)
public void setValidationHintResolver(ValidationHintResolver validationHintResolver)
public View getView(RequestContext context)
ViewFactory
getView
in interface ViewFactory
context
- the flow execution request context.protected abstract AbstractMvcView createMvcView(org.springframework.web.servlet.View view, RequestContext context)
view
- the actual resolved view implementationcontext
- the current request context