|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.springframework.webflow.execution.repository.snapshot.SerializedFlowExecutionSnapshotFactory
public class SerializedFlowExecutionSnapshotFactory
A factory that creates new instances of flow execution snapshots based on standard Java serialization.
Constructor Summary | |
---|---|
SerializedFlowExecutionSnapshotFactory(FlowExecutionFactory flowExecutionFactory,
FlowDefinitionLocator flowDefinitionLocator)
Creates a new serialized flow execution snapshot factory |
Method Summary | |
---|---|
FlowExecutionSnapshot |
createSnapshot(FlowExecution flowExecution)
Takes a snapshot of the flow execution. |
boolean |
getCompress()
Returns whether or not the snapshots should be compressed. |
FlowExecution |
restoreExecution(FlowExecutionSnapshot snapshot,
String flowId,
FlowExecutionKey key,
MutableAttributeMap conversationScope,
FlowExecutionKeyFactory keyFactory)
Restores a flow execution from a previously taken snapshot. |
void |
setCompress(boolean compress)
Set whether or not the snapshots should be compressed. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public SerializedFlowExecutionSnapshotFactory(FlowExecutionFactory flowExecutionFactory, FlowDefinitionLocator flowDefinitionLocator)
flowDefinitionLocator
- the flow definition locatorflowExecutionFactory
- the flow execution factoryMethod Detail |
---|
public boolean getCompress()
public void setCompress(boolean compress)
public FlowExecutionSnapshot createSnapshot(FlowExecution flowExecution) throws SnapshotCreationException
FlowExecutionSnapshotFactory
createSnapshot
in interface FlowExecutionSnapshotFactory
flowExecution
- the flow execution
SnapshotCreationException
- if the snapshot could not be createdpublic FlowExecution restoreExecution(FlowExecutionSnapshot snapshot, String flowId, FlowExecutionKey key, MutableAttributeMap conversationScope, FlowExecutionKeyFactory keyFactory) throws FlowExecutionRestorationFailureException
FlowExecutionSnapshotFactory
restoreExecution
in interface FlowExecutionSnapshotFactory
snapshot
- the previously taken snapshotflowId
- the id of the root flow definitionkey
- the flow execution keyconversationScope
- conversation scopekeyFactory
- factory for creating new snapshot keys
FlowExecutionRestorationFailureException
- if flow execution restoration fails
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |