org.springframework.webflow.engine.builder
Class AbstractFlowBuilderFlowRegistryFactoryBean

java.lang.Object
  extended by org.springframework.webflow.definition.registry.AbstractFlowDefinitionRegistryFactoryBean
      extended by org.springframework.webflow.engine.builder.AbstractFlowBuildingFlowRegistryFactoryBean
          extended by 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

Constructor Summary
AbstractFlowBuilderFlowRegistryFactoryBean()
           
 
Method Summary
protected  void registerFlowDefinition(FlowDefinitionRegistry registry, java.lang.String flowId, AbstractFlowBuilder flowBuilder)
          Register the flow built by given flow builder in specified flow definition registry.
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.
 
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 org.springframework.webflow.definition.registry.AbstractFlowDefinitionRegistryFactoryBean
afterPropertiesSet, createFlowDefinitionRegistry, getObject, getObjectType, getRegistry, isSingleton, setParent
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AbstractFlowBuilderFlowRegistryFactoryBean

public AbstractFlowBuilderFlowRegistryFactoryBean()
Method Detail

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 in
flowId - the flow id to assign
flowBuilder - 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 in
flowId - the flow id to assign
flowAttributes - externally assigned flow attributes that can affect flow construction
flowBuilder - the builder used to build the flow


Copyright © 2004-2007. All Rights Reserved.