org.springframework.webflow.engine.builder.model
Class FlowModelFlowBuilder

java.lang.Object
  extended by org.springframework.webflow.engine.builder.support.AbstractFlowBuilder
      extended by org.springframework.webflow.engine.builder.model.FlowModelFlowBuilder
All Implemented Interfaces:
FlowBuilder

public class FlowModelFlowBuilder
extends AbstractFlowBuilder

Builds a runtime Flow definition object from a FlowModel.

Author:
Keith Donald

Constructor Summary
FlowModelFlowBuilder(FlowModelHolder flowModelHolder)
          Creates a flow builder that can build a Flow from a FlowModel.
 
Method Summary
 void buildEndActions()
          Builds any end actions to execute when the flow ends.
 void buildExceptionHandlers()
          Creates and adds all exception handlers to the flow built by this builder.
 void buildGlobalTransitions()
          Builds any transitions shared by all states of the flow.
 void buildInputMapper()
          Builds the input mapper responsible for mapping flow input on start.
 void buildOutputMapper()
          Builds the output mapper responsible for mapping flow output on end.
 void buildStartActions()
          Builds any start actions to execute when the flow starts.
 void buildStates()
          Builds the states of the flow.
 void buildVariables()
          Builds any variables initialized by the flow when it starts.
 String getFlowResourceString()
          Returns a string describing the location of the flow resource; the logical location where the source code can be found.
 boolean hasFlowChanged()
          As the underlying flow managed by this builder changed since the last build occurred?
 String toString()
           
 
Methods inherited from class org.springframework.webflow.engine.builder.support.AbstractFlowBuilder
dispose, getFlow, init
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

FlowModelFlowBuilder

public FlowModelFlowBuilder(FlowModelHolder flowModelHolder)
Creates a flow builder that can build a Flow from a FlowModel.

Parameters:
flowModelHolder - the flow model holder
Method Detail

buildVariables

public void buildVariables()
                    throws FlowBuilderException
Builds any variables initialized by the flow when it starts.

Specified by:
buildVariables in interface FlowBuilder
Overrides:
buildVariables in class AbstractFlowBuilder
Throws:
FlowBuilderException - an exception occurred building the flow

buildInputMapper

public void buildInputMapper()
                      throws FlowBuilderException
Builds the input mapper responsible for mapping flow input on start.

Specified by:
buildInputMapper in interface FlowBuilder
Overrides:
buildInputMapper in class AbstractFlowBuilder
Throws:
FlowBuilderException - an exception occurred building the flow

buildStartActions

public void buildStartActions()
                       throws FlowBuilderException
Builds any start actions to execute when the flow starts.

Specified by:
buildStartActions in interface FlowBuilder
Overrides:
buildStartActions in class AbstractFlowBuilder
Throws:
FlowBuilderException - an exception occurred building the flow

buildStates

public void buildStates()
                 throws FlowBuilderException
Builds the states of the flow.

Specified by:
buildStates in interface FlowBuilder
Specified by:
buildStates in class AbstractFlowBuilder
Throws:
FlowBuilderException - an exception occurred building the flow

buildGlobalTransitions

public void buildGlobalTransitions()
                            throws FlowBuilderException
Builds any transitions shared by all states of the flow.

Specified by:
buildGlobalTransitions in interface FlowBuilder
Overrides:
buildGlobalTransitions in class AbstractFlowBuilder
Throws:
FlowBuilderException - an exception occurred building the flow

buildEndActions

public void buildEndActions()
                     throws FlowBuilderException
Builds any end actions to execute when the flow ends.

Specified by:
buildEndActions in interface FlowBuilder
Overrides:
buildEndActions in class AbstractFlowBuilder
Throws:
FlowBuilderException - an exception occurred building the flow

buildOutputMapper

public void buildOutputMapper()
                       throws FlowBuilderException
Builds the output mapper responsible for mapping flow output on end.

Specified by:
buildOutputMapper in interface FlowBuilder
Overrides:
buildOutputMapper in class AbstractFlowBuilder
Throws:
FlowBuilderException - an exception occurred building the flow

buildExceptionHandlers

public void buildExceptionHandlers()
                            throws FlowBuilderException
Creates and adds all exception handlers to the flow built by this builder.

Specified by:
buildExceptionHandlers in interface FlowBuilder
Overrides:
buildExceptionHandlers in class AbstractFlowBuilder
Throws:
FlowBuilderException - an exception occurred building this flow

hasFlowChanged

public boolean hasFlowChanged()
Description copied from interface: FlowBuilder
As the underlying flow managed by this builder changed since the last build occurred?

Specified by:
hasFlowChanged in interface FlowBuilder
Overrides:
hasFlowChanged in class AbstractFlowBuilder
Returns:
true if changed, false if not

getFlowResourceString

public String getFlowResourceString()
Description copied from interface: FlowBuilder
Returns a string describing the location of the flow resource; the logical location where the source code can be found. Used for informational purposes.

Specified by:
getFlowResourceString in interface FlowBuilder
Overrides:
getFlowResourceString in class AbstractFlowBuilder
Returns:
the flow resource string

toString

public String toString()
Overrides:
toString in class Object