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. */