Class AbstractFlowConfiguration
java.lang.Object
org.springframework.webflow.config.AbstractFlowConfiguration
- All Implemented Interfaces:
org.springframework.beans.factory.Aware
,org.springframework.context.ApplicationContextAware
public class AbstractFlowConfiguration
extends 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
-
Method Summary
Modifier and TypeMethodDescriptionorg.springframework.context.ApplicationContext
protected FlowBuilderServicesBuilder
Return a builder for creating aFlowBuilderServices
instance.protected FlowDefinitionRegistryBuilder
Return a builder for creating aFlowDefinitionRegistry
instance.protected FlowDefinitionRegistryBuilder
getFlowDefinitionRegistryBuilder
(FlowBuilderServices flowBuilderServices) Return a builder for creating aFlowDefinitionRegistry
instance.protected FlowExecutorBuilder
getFlowExecutorBuilder
(FlowDefinitionLocator flowRegistry) Return a builder for creating aFlowExecutor
instance.void
setApplicationContext
(org.springframework.context.ApplicationContext applicationContext)
-
Constructor Details
-
AbstractFlowConfiguration
public AbstractFlowConfiguration()
-
-
Method Details
-
setApplicationContext
public void setApplicationContext(org.springframework.context.ApplicationContext applicationContext) - Specified by:
setApplicationContext
in interfaceorg.springframework.context.ApplicationContextAware
-
getApplicationContext
public org.springframework.context.ApplicationContext getApplicationContext() -
getFlowExecutorBuilder
Return a builder for creating aFlowExecutor
instance.- Parameters:
flowRegistry
- theFlowDefinitionRegistry
to configure on the flow executor- Returns:
- the created builder
-
getFlowDefinitionRegistryBuilder
Return a builder for creating aFlowDefinitionRegistry
instance.- Returns:
- the created builder
-
getFlowDefinitionRegistryBuilder
protected FlowDefinitionRegistryBuilder getFlowDefinitionRegistryBuilder(FlowBuilderServices flowBuilderServices) Return a builder for creating aFlowDefinitionRegistry
instance.- Parameters:
flowBuilderServices
- theFlowBuilderServices
to configure on the flow registry with- Returns:
- the created builder
-
getFlowBuilderServicesBuilder
Return a builder for creating aFlowBuilderServices
instance.- Returns:
- the created builder
-