public interface FlowModelBuilder
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| Modifier and Type | Method and Description |
|---|---|
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.
|
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.