|
Spring Web Flow | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.springframework.webflow.test.MockFlowExecutionKeyFactory
public class MockFlowExecutionKeyFactory
Trivial flow execution key factory implementation that returns a mock flow execution key each time. The mock key returned is unique: its value is the result of incrementing a sequence managed in static memory.
Constructor Summary | |
---|---|
MockFlowExecutionKeyFactory()
|
Method Summary | |
---|---|
FlowExecutionKey |
getKey(FlowExecution execution)
Get the key to assign to the flow execution. |
void |
removeAllFlowExecutionSnapshots(FlowExecution execution)
Remove all snapshots associated with the flow execution from storage, invalidating all history. |
void |
removeFlowExecutionSnapshot(FlowExecution execution)
Remove the snapshot that was used to restore this flow execution, discarding it for future use. |
void |
updateFlowExecutionSnapshot(FlowExecution execution)
Capture the current state of the flow execution by updating its snapshot in storage. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public MockFlowExecutionKeyFactory()
Method Detail |
---|
public FlowExecutionKey getKey(FlowExecution execution)
FlowExecutionKeyFactory
getKey
in interface FlowExecutionKeyFactory
execution
- the flow execution
public void removeAllFlowExecutionSnapshots(FlowExecution execution)
FlowExecutionKeyFactory
removeAllFlowExecutionSnapshots
in interface FlowExecutionKeyFactory
execution
- the flow executionpublic void removeFlowExecutionSnapshot(FlowExecution execution)
FlowExecutionKeyFactory
removeFlowExecutionSnapshot
in interface FlowExecutionKeyFactory
execution
- the flow executionpublic void updateFlowExecutionSnapshot(FlowExecution execution)
FlowExecutionKeyFactory
updateFlowExecutionSnapshot
in interface FlowExecutionKeyFactory
execution
- the flow execution
|
Spring Web Flow | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |