KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > springframework > webflow > execution > repository > continuation > FlowExecutionContinuation


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.continuation;
17
18 import java.io.Serializable JavaDoc;
19
20 import org.springframework.webflow.execution.FlowExecution;
21
22 /**
23  * A snapshot of a flow execution that can be restored from and serialized to a byte
24  * array.
25  *
26  * @see FlowExecutionContinuationFactory
27  *
28  * @author Erwin Vervaet
29  * @author Keith Donald
30  */

31 public abstract class FlowExecutionContinuation implements Serializable JavaDoc {
32
33     /**
34      * Restores the flow execution wrapped in this continuation.
35      * @return the unmarshalled flow execution
36      * @throws ContinuationUnmarshalException when there is a problem unmarshalling
37      * this continuation
38      */

39     public abstract FlowExecution unmarshal() throws ContinuationUnmarshalException;
40
41     /**
42      * Converts this continuation to a byte array for convenient serialization.
43      * @return this as a byte array
44      */

45     public abstract byte[] toByteArray();
46
47 }
Popular Tags