From 42bba0094cbbea061d24e5d1a6d4bd58373ea6a6 Mon Sep 17 00:00:00 2001 From: Rossen Stoyanchev Date: Thu, 2 Dec 2010 19:46:57 +0000 Subject: [PATCH] SWF-1416 Update JavaDoc and schema doc with regards to setting max-snapshots=0 --- .../webflow/config/spring-webflow-config-2.0.xsd | 3 ++- .../webflow/config/spring-webflow-config-2.3.xsd | 3 ++- .../repository/impl/DefaultFlowExecutionRepository.java | 3 +++ 3 files changed, 7 insertions(+), 2 deletions(-) diff --git a/spring-webflow/src/main/java/org/springframework/webflow/config/spring-webflow-config-2.0.xsd b/spring-webflow/src/main/java/org/springframework/webflow/config/spring-webflow-config-2.0.xsd index 8aa63320..1fac1a1c 100644 --- a/spring-webflow/src/main/java/org/springframework/webflow/config/spring-webflow-config-2.0.xsd +++ b/spring-webflow/src/main/java/org/springframework/webflow/config/spring-webflow-config-2.0.xsd @@ -311,7 +311,8 @@ The maximum number of persistent flow executions allowed per user session. The diff --git a/spring-webflow/src/main/java/org/springframework/webflow/config/spring-webflow-config-2.3.xsd b/spring-webflow/src/main/java/org/springframework/webflow/config/spring-webflow-config-2.3.xsd index 74b5ff4a..8011d1c5 100644 --- a/spring-webflow/src/main/java/org/springframework/webflow/config/spring-webflow-config-2.3.xsd +++ b/spring-webflow/src/main/java/org/springframework/webflow/config/spring-webflow-config-2.3.xsd @@ -322,7 +322,8 @@ The maximum number of persistent flow executions allowed per user session. The 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 810c63cc..f007abeb 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 @@ -30,6 +30,9 @@ import org.springframework.webflow.execution.repository.snapshot.SnapshotNotFoun /** * The default flow execution repository implementation. Takes one to {@link #getMaxSnapshots() max} flow * execution snapshots, where each snapshot represents a copy of a {@link FlowExecution} taken at a point in time. + * Snapshots are created via a {@link FlowExecutionSnapshotFactory} and that may or may not involve creating a copy of a + * flow execution through Java serialization. In particular when the flow-execution-repository element is configured + * with max-execution-snapshots="0", creating snapshot copies is effectively turned off. *

* The set of active flow executions are managed by a {@link ConversationManager} implementation, which this repository * delegates to.