org.springframework.webflow.engine.builder
Class AbstractFlowBuilderFlowRegistryFactoryBean
java.lang.Object
org.springframework.webflow.definition.registry.AbstractFlowDefinitionRegistryFactoryBean
org.springframework.webflow.engine.builder.AbstractFlowBuildingFlowRegistryFactoryBean
org.springframework.webflow.engine.builder.AbstractFlowBuilderFlowRegistryFactoryBean
- All Implemented Interfaces:
- org.springframework.beans.factory.BeanFactoryAware, org.springframework.beans.factory.FactoryBean, org.springframework.beans.factory.InitializingBean, org.springframework.context.ResourceLoaderAware
public abstract class AbstractFlowBuilderFlowRegistryFactoryBean
- extends AbstractFlowBuildingFlowRegistryFactoryBean
Base class for factory beans that create flow definition registries containing flows built using Java based
flow builders
.
Subclasses only need to define the AbstractFlowBuildingFlowRegistryFactoryBean.doPopulate(FlowDefinitionRegistry)
method and use the
registerFlowDefinition(FlowDefinitionRegistry, String, AbstractFlowBuilder)
convenience methods provided by
this class to register all relevant flows:
public class MyFlowRegistryFactoryBean extends AbstractFlowBuilderFlowRegistryFactoryBean {
protected void doPopulate(FlowDefinitionRegistry registry) {
registerFlowDefinition(registry, "my-flow", new MyFlowBuilder());
registerFlowDefinition(registry, "my-other-flow", new MyOtherFlowBuilder());
}
}
- Since:
- 1.0.2
- Author:
- Erwin Vervaet
- See Also:
AbstractFlowBuilder
Methods inherited from class org.springframework.webflow.engine.builder.AbstractFlowBuildingFlowRegistryFactoryBean |
createFlowServiceLocator, doPopulate, getBeanFactory, getBeanInvokingActionFactory, getConversionService, getExpressionParser, getFlowArtifactFactory, getFlowServiceLocator, getResourceLoader, init, init, setBeanFactory, setBeanInvokingActionFactory, setConversionService, setExpressionParser, setFlowArtifactFactory, setResourceLoader |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
AbstractFlowBuilderFlowRegistryFactoryBean
public AbstractFlowBuilderFlowRegistryFactoryBean()
registerFlowDefinition
protected void registerFlowDefinition(FlowDefinitionRegistry registry,
java.lang.String flowId,
AbstractFlowBuilder flowBuilder)
- Register the flow built by given flow builder in specified flow definition registry.
Note that this method will set the flow service locator
of this class on given
flow builder.
- Parameters:
registry
- the registry to register the flow inflowId
- the flow id to assignflowBuilder
- the builder used to build the flow
registerFlowDefinition
protected void registerFlowDefinition(FlowDefinitionRegistry registry,
java.lang.String flowId,
AttributeMap flowAttributes,
AbstractFlowBuilder flowBuilder)
- Register the flow built by given flow builder in specified flow definition registry.
Note that this method will set the flow service locator
of this class on given
flow builder.
- Parameters:
registry
- the registry to register the flow inflowId
- the flow id to assignflowAttributes
- externally assigned flow attributes that can affect flow constructionflowBuilder
- the builder used to build the flow
Copyright © 2004-2007. All Rights Reserved.