From 0f3d983587b67f1490e405d1ffc8c92f63d64bcd Mon Sep 17 00:00:00 2001 From: Keith Donald Date: Tue, 22 Apr 2008 22:21:33 +0000 Subject: [PATCH] getters --- ...ctFlowExecutionContinuationRepository.java | 8 +++++ .../AbstractFlowExecutionRepository.java | 33 ++++++++++++------- 2 files changed, 30 insertions(+), 11 deletions(-) diff --git a/spring-webflow/src/main/java/org/springframework/webflow/execution/repository/continuation/AbstractFlowExecutionContinuationRepository.java b/spring-webflow/src/main/java/org/springframework/webflow/execution/repository/continuation/AbstractFlowExecutionContinuationRepository.java index 5949bf22..8c8ba635 100644 --- a/spring-webflow/src/main/java/org/springframework/webflow/execution/repository/continuation/AbstractFlowExecutionContinuationRepository.java +++ b/spring-webflow/src/main/java/org/springframework/webflow/execution/repository/continuation/AbstractFlowExecutionContinuationRepository.java @@ -46,6 +46,14 @@ public abstract class AbstractFlowExecutionContinuationRepository extends Abstra this.continuationFactory = continuationFactory; } + /** + * Returns the configured flow execution snapshot factory. + * @return the snapshot factory + */ + public FlowExecutionContinuationFactory getContinuationFactory() { + return continuationFactory; + } + /** * Take a new continuation snapshot. * @param flowExecution the execution to snapshot diff --git a/spring-webflow/src/main/java/org/springframework/webflow/execution/repository/support/AbstractFlowExecutionRepository.java b/spring-webflow/src/main/java/org/springframework/webflow/execution/repository/support/AbstractFlowExecutionRepository.java index edb46c41..f514001e 100644 --- a/spring-webflow/src/main/java/org/springframework/webflow/execution/repository/support/AbstractFlowExecutionRepository.java +++ b/spring-webflow/src/main/java/org/springframework/webflow/execution/repository/support/AbstractFlowExecutionRepository.java @@ -58,20 +58,10 @@ public abstract class AbstractFlowExecutionRepository implements FlowExecutionRe */ protected final Log logger = LogFactory.getLog(getClass()); - /** - * The conversation service to delegate to for managing conversations initiated by this repository. - */ private ConversationManager conversationManager; - /** - * The flow execution state restorer for restoring transient execution state. - */ private FlowExecutionStateRestorer executionStateRestorer; - /** - * Flag to indicate whether or not a new flow execution key should always be generated before each put call. Default - * is true. - */ private boolean alwaysGenerateNewNextKey = true; /** @@ -87,7 +77,28 @@ public abstract class AbstractFlowExecutionRepository implements FlowExecutionRe } /** - * Sets a flag indicating if a new {@link FlowExecutionKey} should always be generated before each put call. By + * The conversation service to delegate to for managing conversations initiated by this repository. + */ + public ConversationManager getConversationManager() { + return conversationManager; + } + + /** + * The flow execution state restorer for restoring transient execution state. + */ + public FlowExecutionStateRestorer getExecutionStateRestorer() { + return executionStateRestorer; + } + + /** + * The flag indicating if a new {@link FlowExecutionKey} should always be generated before each put call. + */ + public boolean getAlwaysGenerateNewNextKey() { + return alwaysGenerateNewNextKey; + } + + /** + * Sets the flag indicating if a new {@link FlowExecutionKey} should always be generated before each put call. By * setting this to false a FlowExecution can remain identified by the same key throughout its life. */ public void setAlwaysGenerateNewNextKey(boolean alwaysGenerateNewNextKey) {