|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.springframework.webflow.execution.repository.snapshot.SimpleFlowExecutionSnapshotFactory
public class SimpleFlowExecutionSnapshotFactory
A factory that creates new flow execution snapshot instances that simply wraps an underlying
flow execution
instance.
Note: this class is generally only suitable for use with a repository that has maxSnapshots set to 1, since no actual
copies of the execution data are made by this factory. This class exists to support the use case where taking copies
of flow execution state is not needed.
Constructor Summary | |
---|---|
SimpleFlowExecutionSnapshotFactory(FlowExecutionFactory flowExecutionFactory,
FlowDefinitionLocator flowDefinitionLocator)
Creates a new simple flow execution snapshot factory |
Method Summary | |
---|---|
FlowExecutionSnapshot |
createSnapshot(FlowExecution flowExecution)
Takes a snapshot of the flow execution. |
FlowExecution |
restoreExecution(FlowExecutionSnapshot snapshot,
String flowId,
FlowExecutionKey key,
MutableAttributeMap conversationScope,
FlowExecutionKeyFactory keyFactory)
Restores a flow execution from a previously taken snapshot. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public SimpleFlowExecutionSnapshotFactory(FlowExecutionFactory flowExecutionFactory, FlowDefinitionLocator flowDefinitionLocator)
flowDefinitionLocator
- the flow definition locatorflowExecutionFactory
- the flow execution factoryMethod Detail |
---|
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 |