KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > springframework > webflow > execution > repository > support > FlowExecutionStateRestorer


1 /*
2  * Copyright 2002-2006 the original author or authors.
3  *
4  * Licensed under the Apache License, Version 2.0 (the "License");
5  * you may not use this file except in compliance with the License.
6  * You may obtain a copy of the License at
7  *
8  * http://www.apache.org/licenses/LICENSE-2.0
9  *
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, MutableAttributeMap conversationScope);
39 }
Popular Tags