org.zkoss.spring.webflow.engine.builder
Class ZkFlowViewFactoryCreator
java.lang.Object
org.springframework.webflow.mvc.builder.MvcViewFactoryCreator
org.zkoss.spring.webflow.engine.builder.ZkFlowViewFactoryCreator
- All Implemented Interfaces:
- org.springframework.context.ApplicationContextAware, org.springframework.webflow.engine.builder.ViewFactoryCreator
public class ZkFlowViewFactoryCreator
- extends org.springframework.webflow.mvc.builder.MvcViewFactoryCreator
Returns ViewFactory
that create ZK event based views.
Used by a FlowBuilder to configure a flow's view states.
Like other Spring native implmentation, this one creates
view factories that resolve their views by loading flow-relative
resources, such as .zul templates located in a flow working directory.
This class also supports rendering views resolved by
pre-existing Spring MVC ViewResolver
.
- Since:
- 1.1
- Author:
- henrichen
Method Summary |
protected org.springframework.webflow.mvc.view.AbstractMvcViewFactory |
createMvcViewFactory(org.springframework.binding.expression.Expression viewId,
org.springframework.binding.expression.ExpressionParser expressionParser,
org.springframework.binding.convert.ConversionService conversionService,
org.springframework.webflow.engine.builder.BinderConfiguration binderConfiguration)
|
org.springframework.webflow.execution.ViewFactory |
createViewFactory(org.springframework.binding.expression.Expression viewId,
org.springframework.binding.expression.ExpressionParser expressionParser,
org.springframework.binding.convert.ConversionService conversionService,
org.springframework.webflow.engine.builder.BinderConfiguration binderConfiguration)
|
void |
setViewResolvers(java.util.List viewResolvers)
Sets the chain of Spring MVC view resolvers to delegate to resolve views selected by flows. |
Methods inherited from class org.springframework.webflow.mvc.builder.MvcViewFactoryCreator |
getViewIdByConvention, setApplicationContext, setDefaultViewSuffix, setEventIdParameterName, setFieldMarkerPrefix, setFlowViewResolver, setMessageCodesResolver, setUseSpringBeanBinding |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ZkFlowViewFactoryCreator
public ZkFlowViewFactoryCreator()
createViewFactory
public org.springframework.webflow.execution.ViewFactory createViewFactory(org.springframework.binding.expression.Expression viewId,
org.springframework.binding.expression.ExpressionParser expressionParser,
org.springframework.binding.convert.ConversionService conversionService,
org.springframework.webflow.engine.builder.BinderConfiguration binderConfiguration)
- Specified by:
createViewFactory
in interface org.springframework.webflow.engine.builder.ViewFactoryCreator
- Overrides:
createViewFactory
in class org.springframework.webflow.mvc.builder.MvcViewFactoryCreator
setViewResolvers
public void setViewResolvers(java.util.List viewResolvers)
- Sets the chain of Spring MVC
view resolvers
to delegate to resolve views selected by flows.
Allows for reuse of existing View Resolvers configured in a Spring application context. If multiple resolvers are
to be used, the resolvers should be ordered in the manner they should be applied.
- Overrides:
setViewResolvers
in class org.springframework.webflow.mvc.builder.MvcViewFactoryCreator
- Parameters:
viewResolvers
- the view resolver list
createMvcViewFactory
protected org.springframework.webflow.mvc.view.AbstractMvcViewFactory createMvcViewFactory(org.springframework.binding.expression.Expression viewId,
org.springframework.binding.expression.ExpressionParser expressionParser,
org.springframework.binding.convert.ConversionService conversionService,
org.springframework.webflow.engine.builder.BinderConfiguration binderConfiguration)
- Overrides:
createMvcViewFactory
in class org.springframework.webflow.mvc.builder.MvcViewFactoryCreator
Copyright © 2005-2007 Potix Corporation. All Rights Reserved.