From 7b5e36528911c7661774c6fb1e63553c6feef4fe Mon Sep 17 00:00:00 2001 From: Keith Donald Date: Mon, 21 Apr 2008 20:46:22 +0000 Subject: [PATCH] http://jira.springframework.org/browse/SWF-530 --- .../impl/DefaultFlowExecutionRepository.java | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) diff --git a/spring-webflow/src/main/java/org/springframework/webflow/execution/repository/impl/DefaultFlowExecutionRepository.java b/spring-webflow/src/main/java/org/springframework/webflow/execution/repository/impl/DefaultFlowExecutionRepository.java index 1ab85d54..c96ba142 100644 --- a/spring-webflow/src/main/java/org/springframework/webflow/execution/repository/impl/DefaultFlowExecutionRepository.java +++ b/spring-webflow/src/main/java/org/springframework/webflow/execution/repository/impl/DefaultFlowExecutionRepository.java @@ -24,6 +24,7 @@ import org.springframework.webflow.execution.repository.continuation.AbstractFlo import org.springframework.webflow.execution.repository.continuation.ContinuationNotFoundException; import org.springframework.webflow.execution.repository.continuation.ContinuationUnmarshalException; import org.springframework.webflow.execution.repository.continuation.FlowExecutionContinuation; +import org.springframework.webflow.execution.repository.continuation.FlowExecutionContinuationFactory; import org.springframework.webflow.execution.repository.continuation.SerializedFlowExecutionContinuationFactory; import org.springframework.webflow.execution.repository.support.FlowExecutionStateRestorer; @@ -72,7 +73,8 @@ public class DefaultFlowExecutionRepository extends AbstractFlowExecutionContinu private int maxContinuations = 30; /** - * Create a new continuation based flow execution repository using given state restorer and conversation manager. + * Create a new continuation based flow execution repository using the given state restorer and conversation + * manager. Defaults to a {@link SerializedFlowExecutionContinuationFactory}. * @param conversationManager the conversation manager to use * @param executionStateRestorer the state restoration strategy to use */ @@ -81,6 +83,18 @@ public class DefaultFlowExecutionRepository extends AbstractFlowExecutionContinu super(conversationManager, executionStateRestorer, new SerializedFlowExecutionContinuationFactory()); } + /** + * Create a new continuation based flow execution repository using the given state restorer, conversation manager, + * and continuation factory. + * @param conversationManager the conversation manager to use + * @param executionStateRestorer the state restoration strategy to use + * @param continuationFactory the continuation factory to use + */ + public DefaultFlowExecutionRepository(ConversationManager conversationManager, + FlowExecutionStateRestorer executionStateRestorer, FlowExecutionContinuationFactory continuationFactory) { + super(conversationManager, executionStateRestorer, continuationFactory); + } + /** * Returns the max number of continuations allowed per conversation by this repository. */