|
Spring Web Flow | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface FlowModelBuilder
Builder interface used to build a flow model. The process of building a flow model consists of the following steps:
init()
.
build()
to create the flow model.
getFlowModel()
to return the fully-built FlowModel
model.
dispose()
.
Implementations should encapsulate flow construction logic, either for a specific kind of flow, for example, an
XmlFlowModelBuilder
, for building flows from an XML-definition.
This is a good example of the classic GoF builder pattern.
FlowModel
Method Summary | |
---|---|
void |
build()
Builds any variables initialized by the flow when it starts. |
void |
dispose()
Shutdown the builder, releasing any resources it holds. |
FlowModel |
getFlowModel()
Get the fully constructed flow model. |
org.springframework.core.io.Resource |
getFlowModelResource()
Get the underlying flow model resource accessed to build this flow model. |
boolean |
hasFlowModelResourceChanged()
Returns true if the underlying flow model resource has changed since the last call to init() . |
void |
init()
Initialize this builder. |
Method Detail |
---|
void init() throws FlowModelBuilderException
FlowModelBuilderException
- an exception occurred building the flowvoid build() throws FlowModelBuilderException
FlowModelBuilderException
- an exception occurred building the flowFlowModel getFlowModel() throws FlowModelBuilderException
FlowModelBuilderException
- an exception occurred building this flowvoid dispose() throws FlowModelBuilderException
init()
method.
FlowModelBuilderException
- an exception occurred disposing this floworg.springframework.core.io.Resource getFlowModelResource()
boolean hasFlowModelResourceChanged()
init()
. Always
returns false if the flow model is not build from a resource.
|
Spring Web Flow | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |