01: /*
02: * Copyright 2004-2007 the original author or authors.
03: *
04: * Licensed under the Apache License, Version 2.0 (the "License");
05: * you may not use this file except in compliance with the License.
06: * You may obtain a copy of the License at
07: *
08: * http://www.apache.org/licenses/LICENSE-2.0
09: *
10: * Unless required by applicable law or agreed to in writing, software
11: * distributed under the License is distributed on an "AS IS" BASIS,
12: * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13: * See the License for the specific language governing permissions and
14: * limitations under the License.
15: */
16: package org.springframework.webflow.execution.repository.support;
17:
18: import org.springframework.webflow.core.collection.MutableAttributeMap;
19: import org.springframework.webflow.execution.FlowExecution;
20:
21: /**
22: * A support strategy used by repositories that serialize flow executions to
23: * restore transient execution state after deserialization.
24: *
25: * @author Keith Donald
26: */
27: public interface FlowExecutionStateRestorer {
28:
29: /**
30: * Restore the transient state of the flow execution.
31: * @param flowExecution the (potentially deserialized) flow execution
32: * @param conversationScope the execution's conversation scope, which is
33: * typically not part of the serialized form since it could be shared
34: * by multiple physical flow execution <i>copies</i> all sharing the
35: * same logical conversation
36: * @return the restored flow execution
37: */
38: public FlowExecution restoreState(FlowExecution flowExecution,
39: MutableAttributeMap conversationScope);
40: }
|