|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface FlowBuilder
Builder interface used to build flows.
Implementations should encapsulate flow construction logic, either for a
specific kind of flow, for example, an EditUsersMasterFlowBuilder
built in Java code, or a generic flow builder strategy, like the
XmlFlowBuilder, for building flows from an XML-definition.
Flow builders are executed by the FlowFactoryBean, which acts
as an assembler (director). This is the classic GoF Builder pattern.
AbstractFlowBuilder,
XmlFlowBuilder,
FlowFactoryBean| Method Summary | |
|---|---|
void |
buildStates()
Creates and adds all states to the flow built by this builder. |
void |
dispose()
Shutdown the builder, releasing any resources it holds. |
Flow |
getResult()
Get the fully constructed and configured Flow object - called by the builder's assembler (director) after assembly. |
Flow |
init()
Initialize this builder and return a handle to the flow under construction. |
| Method Detail |
|---|
Flow init()
throws FlowBuilderException
Note: the returned Flow handle is needed to avoid infinite
loops in the build process. The returned flow object is still under
construction and not yet ready for use. The only property that is
guaranteed to be filled is the id of the flow.
FlowBuilderException - an exception occured building the flow
void buildStates()
throws FlowBuilderException
FlowBuilderException - an exception occured building the flowFlow getResult()
init()
method. However, when this method is called by the assembler, flow
construction will have completed and the returned flow is ready for use.
void dispose()
init() method.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||