Spring Web Flow

org.springframework.webflow.config
Class AbstractFlowConfiguration

java.lang.Object
  extended by org.springframework.webflow.config.AbstractFlowConfiguration
All Implemented Interfaces:
org.springframework.beans.factory.Aware, org.springframework.context.ApplicationContextAware

public class AbstractFlowConfiguration
extends java.lang.Object
implements org.springframework.context.ApplicationContextAware

A base class for @Configuration classes to configure Spring Web Flow.

Does not provides any configuration (i.e. no @Bean methods}. Instead it provides access, via protected methods, to builders for one (or more) of the following:

Sub-classes are expected to declare @Bean methods themselves and use the appropriate builder from these methods.

Since:
2.4
Author:
Rossen Stoyanchev

Constructor Summary
AbstractFlowConfiguration()
           
 
Method Summary
 org.springframework.context.ApplicationContext getApplicationContext()
           
protected  FlowBuilderServicesBuilder getFlowBuilderServicesBuilder()
          Return a builder for creating a FlowBuilderServices instance.
protected  FlowDefinitionRegistryBuilder getFlowDefinitionRegistryBuilder()
          Return a builder for creating a FlowDefinitionRegistry instance.
protected  FlowDefinitionRegistryBuilder getFlowDefinitionRegistryBuilder(FlowBuilderServices flowBuilderServices)
          Return a builder for creating a FlowDefinitionRegistry instance.
protected  FlowExecutorBuilder getFlowExecutorBuilder(FlowDefinitionLocator flowRegistry)
          Return a builder for creating a FlowExecutor instance.
 void setApplicationContext(org.springframework.context.ApplicationContext applicationContext)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AbstractFlowConfiguration

public AbstractFlowConfiguration()
Method Detail

setApplicationContext

public void setApplicationContext(org.springframework.context.ApplicationContext applicationContext)
Specified by:
setApplicationContext in interface org.springframework.context.ApplicationContextAware

getApplicationContext

public org.springframework.context.ApplicationContext getApplicationContext()

getFlowExecutorBuilder

protected FlowExecutorBuilder getFlowExecutorBuilder(FlowDefinitionLocator flowRegistry)
Return a builder for creating a FlowExecutor instance.

Parameters:
flowRegistry - the FlowDefinitionRegistry to configure on the flow executor
Returns:
the created builder

getFlowDefinitionRegistryBuilder

protected FlowDefinitionRegistryBuilder getFlowDefinitionRegistryBuilder()
Return a builder for creating a FlowDefinitionRegistry instance.

Returns:
the created builder

getFlowDefinitionRegistryBuilder

protected FlowDefinitionRegistryBuilder getFlowDefinitionRegistryBuilder(FlowBuilderServices flowBuilderServices)
Return a builder for creating a FlowDefinitionRegistry instance.

Parameters:
flowBuilderServices - the FlowBuilderServices to configure on the flow registry with
Returns:
the created builder

getFlowBuilderServicesBuilder

protected FlowBuilderServicesBuilder getFlowBuilderServicesBuilder()
Return a builder for creating a FlowBuilderServices instance.

Returns:
the created builder

Spring Web Flow