|
spring-webflow | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.springframework.webflow.config.FlowExecutorBuilder
public class FlowExecutorBuilder
A builder for FlowExecutor instances designed for programmatic use in
@Bean factory methods. For XML configuration consider using the
webflow-config XML namespace.
| Constructor Summary | |
|---|---|
FlowExecutorBuilder(FlowDefinitionLocator flowRegistry,
org.springframework.context.ApplicationContext applicationContext)
Create a new instance with the given flow registry and ApplicationContext. |
|
| Method Summary | |
|---|---|
FlowExecutorBuilder |
addFlowExecutionAttribute(java.lang.String name,
java.lang.Object value)
Add a single flow execution meta attribute. |
FlowExecutorBuilder |
addFlowExecutionListener(FlowExecutionListener listener)
Register a FlowExecutionListener that observes the lifecycle of all flow
executions launched by this executor. |
FlowExecutorBuilder |
addFlowExecutionListener(FlowExecutionListener listener,
java.lang.String criteria)
Register a FlowExecutionListener that observes the lifecycle of flow
executions launched by this executor. |
FlowExecutor |
build()
Create and return a FlowExecutor instance. |
FlowExecutorBuilder |
setAlwaysRedirectOnPause(boolean redirectOnPause)
Whether flow executions should redirect after they pause before rendering. |
FlowExecutorBuilder |
setConversationManager(ConversationManager conversationManager)
Set the ConversationManager implementation to use for storing conversations in the session effectively controlling how state is stored physically when a flow execution is paused.. |
FlowExecutorBuilder |
setMaxFlowExecutions(int maxFlowExecutions)
Set the maximum number of allowed flow executions per user. |
FlowExecutorBuilder |
setMaxFlowExecutionSnapshots(int maxFlowExecutionSnapshots)
Set the maximum number of history snapshots allowed per flow execution. |
FlowExecutorBuilder |
setRedirectInSameState(boolean redirectInSameState)
Whether flow executions redirect after they pause for transitions that remain in the same view state. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public FlowExecutorBuilder(FlowDefinitionLocator flowRegistry,
org.springframework.context.ApplicationContext applicationContext)
flowRegistry - the flow registry that will locate flow definitionsapplicationContext - the Spring ApplicationContext to use for
initializing an instance of MvcEnvironment| Method Detail |
|---|
public FlowExecutorBuilder setMaxFlowExecutions(int maxFlowExecutions)
maxFlowExecutions - the max flow executionspublic FlowExecutorBuilder setMaxFlowExecutionSnapshots(int maxFlowExecutionSnapshots)
maxFlowExecutionSnapshots - the max flow execution snapshotspublic FlowExecutorBuilder setAlwaysRedirectOnPause(boolean redirectOnPause)
redirectOnPause - whether to redirect or notpublic FlowExecutorBuilder setRedirectInSameState(boolean redirectInSameState)
redirectInSameState - whether to redirect or not
public FlowExecutorBuilder addFlowExecutionAttribute(java.lang.String name,
java.lang.Object value)
name - the attribute namevalue - the attribute valuepublic FlowExecutorBuilder addFlowExecutionListener(FlowExecutionListener listener)
FlowExecutionListener that observes the lifecycle of all flow
executions launched by this executor.
listener - the listener to be registered
public FlowExecutorBuilder addFlowExecutionListener(FlowExecutionListener listener,
java.lang.String criteria)
FlowExecutionListener that observes the lifecycle of flow
executions launched by this executor.
listener - the listener to be registeredcriteria - the criteria that determines the flow definitions a listener
should observe, delimited by commas or '*' for "all".
Example: 'flow1,flow2,flow3'.public FlowExecutorBuilder setConversationManager(ConversationManager conversationManager)
conversationManager - the ConversationManager instance to usepublic FlowExecutor build()
FlowExecutor instance.
|
spring-webflow | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||