| java.lang.Object org.springframework.webflow.engine.builder.FlowAssembler
FlowAssembler | public class FlowAssembler (Code) | | A director for assembling flows, delegating to a
FlowBuilder to
construct a flow. This class encapsulates the algorithm for using a
FlowBuilder to assemble a Flow properly. It acts as the director in the
classic GoF builder pattern.
Flow assemblers may be used in a standalone, programmatic fashion as follows:
FlowBuilder builder = ...;
Flow flow = new FlowAssembler("myFlow", builder).assembleFlow();
See Also: org.springframework.webflow.engine.builder.FlowBuilder author: Keith Donald author: Erwin Vervaet |
Constructor Summary | |
public | FlowAssembler(String flowId, FlowBuilder flowBuilder) Create a new flow assembler that will direct Flow assembly using the
specified builder strategy. | public | FlowAssembler(String flowId, AttributeMap flowAttributes, FlowBuilder flowBuilder) Create a new flow assembler that will direct Flow assembly using the
specified builder strategy. |
Method Summary | |
public Flow | assembleFlow() Assembles the flow, directing the construction process by delegating to
the configured FlowBuilder. | protected void | directAssembly() Build all parts of the flow by directing flow assembly by the flow
builder. | public AttributeMap | getFlowAttributes() Returns externally assigned attributes that can be used to affect flow
construction. | public FlowBuilder | getFlowBuilder() Returns the flow builder strategy used to construct the flow from its
component parts. | public String | getFlowId() Returns the identifier to assign to the flow. |
FlowAssembler | public FlowAssembler(String flowId, FlowBuilder flowBuilder)(Code) | | Create a new flow assembler that will direct Flow assembly using the
specified builder strategy.
Parameters: flowId - the flow id to assign Parameters: flowBuilder - the builder the factory will use to build flows |
FlowAssembler | public FlowAssembler(String flowId, AttributeMap flowAttributes, FlowBuilder flowBuilder)(Code) | | Create a new flow assembler that will direct Flow assembly using the
specified builder strategy.
Parameters: flowId - the flow id to assign Parameters: flowAttributes - externally assigned flow attributes that can affectflow construction Parameters: flowBuilder - the builder the factory will use to build flows |
getFlowAttributes | public AttributeMap getFlowAttributes()(Code) | | Returns externally assigned attributes that can be used to affect flow
construction.
|
getFlowBuilder | public FlowBuilder getFlowBuilder()(Code) | | Returns the flow builder strategy used to construct the flow from its
component parts.
|
getFlowId | public String getFlowId()(Code) | | Returns the identifier to assign to the flow.
|
|
|