org.springframework.webflow.engine.impl
Class FlowExecutionImplStateRestorer

java.lang.Object
  extended by org.springframework.webflow.engine.impl.FlowExecutionImplStateRestorer
All Implemented Interfaces:
FlowExecutionStateRestorer

public class FlowExecutionImplStateRestorer
extends java.lang.Object
implements FlowExecutionStateRestorer

Restores the transient state of deserialized FlowExecutionImpl objects.

Author:
Keith Donald

Constructor Summary
FlowExecutionImplStateRestorer(FlowDefinitionLocator definitionLocator)
          Creates a new execution transient state restorer.
 
Method Summary
 FlowExecution restoreState(FlowExecution flowExecution, MutableAttributeMap conversationScope)
          Restore the transient state of the flow execution.
 void setExecutionAttributes(AttributeMap executionAttributes)
          Sets the attributes to apply to restored flow executions.
 void setExecutionAttributesMap(java.util.Map executionAttributes)
          Sets the attributes to apply to restored flow executions.
 void setExecutionListenerLoader(FlowExecutionListenerLoader executionListenerLoader)
          Sets the strategy for loading listeners that should observe executions of a flow definition.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FlowExecutionImplStateRestorer

public FlowExecutionImplStateRestorer(FlowDefinitionLocator definitionLocator)
Creates a new execution transient state restorer.

Parameters:
definitionLocator - the flow definition locator
Method Detail

setExecutionAttributes

public void setExecutionAttributes(AttributeMap executionAttributes)
Sets the attributes to apply to restored flow executions. Execution attributes may affect flow execution behavior.

Parameters:
executionAttributes - flow execution system attributes

setExecutionAttributesMap

public void setExecutionAttributesMap(java.util.Map executionAttributes)
Sets the attributes to apply to restored flow executions. Execution attributes may affect flow execution behavior.

Convenience setter that takes a simple java.util.Map to ease bean style configuration.

Parameters:
executionAttributes - flow execution system attributes

setExecutionListenerLoader

public void setExecutionListenerLoader(FlowExecutionListenerLoader executionListenerLoader)
Sets the strategy for loading listeners that should observe executions of a flow definition. Allows full control over what listeners should apply. for executions of a flow definition.


restoreState

public FlowExecution restoreState(FlowExecution flowExecution,
                                  MutableAttributeMap conversationScope)
Description copied from interface: FlowExecutionStateRestorer
Restore the transient state of the flow execution.

Specified by:
restoreState in interface FlowExecutionStateRestorer
Parameters:
flowExecution - the (potentially deserialized) flow execution
conversationScope - the execution's conversation scope, which is typically not part of the serialized form since it could be shared by multiple physical flow execution copies all sharing the same logical conversation
Returns:
the restored flow execution


Copyright © 2004-2007. All Rights Reserved.