org.springframework.webflow.engine.impl
Class FlowExecutionImplFactory

java.lang.Object
  extended by org.springframework.webflow.engine.impl.FlowExecutionImplFactory
All Implemented Interfaces:
FlowExecutionFactory

public class FlowExecutionImplFactory
extends java.lang.Object
implements FlowExecutionFactory

A factory for instances of the default flow execution implementation.

Author:
Keith Donald

Constructor Summary
FlowExecutionImplFactory()
           
 
Method Summary
 FlowExecution createFlowExecution(FlowDefinition flowDefinition)
          Create a new flow execution product for the given flow definition.
 AttributeMap getExecutionAttributes()
          Returns the attributes to apply to flow executions created by this factory.
 FlowExecutionListenerLoader getExecutionListenerLoader()
          Returns the strategy for loading listeners that should observe executions of a flow definition.
 void setExecutionAttributes(AttributeMap executionAttributes)
          Sets the attributes to apply to flow executions created by this factory.
 void setExecutionAttributesMap(java.util.Map executionAttributes)
          Sets the attributes to apply to flow executions created by this factory.
 void setExecutionListenerLoader(FlowExecutionListenerLoader listenerLoader)
          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

FlowExecutionImplFactory

public FlowExecutionImplFactory()
Method Detail

getExecutionAttributes

public AttributeMap getExecutionAttributes()
Returns the attributes to apply to flow executions created by this factory. Execution attributes may affect flow execution behavior.

Returns:
flow execution attributes

setExecutionAttributes

public void setExecutionAttributes(AttributeMap executionAttributes)
Sets the attributes to apply to flow executions created by this factory. 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 flow executions created by this factory. 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

getExecutionListenerLoader

public FlowExecutionListenerLoader getExecutionListenerLoader()
Returns 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.


setExecutionListenerLoader

public void setExecutionListenerLoader(FlowExecutionListenerLoader listenerLoader)
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.


createFlowExecution

public FlowExecution createFlowExecution(FlowDefinition flowDefinition)
Description copied from interface: FlowExecutionFactory
Create a new flow execution product for the given flow definition.

Specified by:
createFlowExecution in interface FlowExecutionFactory
Parameters:
flowDefinition - the flow definition
Returns:
the new flow execution, fully initialized and awaiting to be started
See Also:
FlowExecution.start(org.springframework.webflow.core.collection.MutableAttributeMap, org.springframework.webflow.context.ExternalContext)


Copyright © 2004-2007. All Rights Reserved.