public abstract class AbstractFlowBuilder extends java.lang.Object implements FlowBuilder
buildStates()
.Constructor and Description |
---|
AbstractFlowBuilder() |
Modifier and Type | Method and Description |
---|---|
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.
|
abstract void |
buildStates()
Builds the states of the flow.
|
void |
buildVariables()
Builds any variables initialized by the flow when it starts.
|
protected Flow |
createFlow()
Factory method that initially creates the flow implementation during flow builder initialization.
|
void |
dispose()
Shutdown the builder, releasing any resources it holds.
|
protected void |
doDispose()
Flow builder destruction hook.
|
protected void |
doInit()
Flow builder initialization hook.
|
protected FlowBuilderContext |
getContext()
Returns this flow builder's context.
|
Flow |
getFlow()
Get the fully constructed and configured Flow object.
|
java.lang.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?
|
void |
init(FlowBuilderContext context)
Initialize this builder.
|
public void init(FlowBuilderContext context) throws FlowBuilderException
FlowBuilder
init
in interface FlowBuilder
context
- the flow builder contextFlowBuilderException
- an exception occurred building the flowprotected void doInit()
protected Flow createFlow()
protected FlowBuilderContext getContext()
public void buildVariables() throws FlowBuilderException
FlowBuilder
buildVariables
in interface FlowBuilder
FlowBuilderException
- an exception occurred building the flowpublic void buildInputMapper() throws FlowBuilderException
FlowBuilder
buildInputMapper
in interface FlowBuilder
FlowBuilderException
- an exception occurred building the flowpublic void buildStartActions() throws FlowBuilderException
FlowBuilder
buildStartActions
in interface FlowBuilder
FlowBuilderException
- an exception occurred building the flowpublic abstract void buildStates() throws FlowBuilderException
FlowBuilder
buildStates
in interface FlowBuilder
FlowBuilderException
- an exception occurred building the flowpublic void buildGlobalTransitions() throws FlowBuilderException
FlowBuilder
buildGlobalTransitions
in interface FlowBuilder
FlowBuilderException
- an exception occurred building the flowpublic void buildEndActions() throws FlowBuilderException
FlowBuilder
buildEndActions
in interface FlowBuilder
FlowBuilderException
- an exception occurred building the flowpublic void buildOutputMapper() throws FlowBuilderException
FlowBuilder
buildOutputMapper
in interface FlowBuilder
FlowBuilderException
- an exception occurred building the flowpublic void buildExceptionHandlers() throws FlowBuilderException
FlowBuilder
buildExceptionHandlers
in interface FlowBuilder
FlowBuilderException
- an exception occurred building this flowpublic Flow getFlow() throws FlowBuilderException
FlowBuilder
getFlow
in interface FlowBuilder
FlowBuilderException
- an exception occurred building this flowpublic void dispose() throws FlowBuilderException
FlowBuilder
FlowBuilder.init(FlowBuilderContext)
method.dispose
in interface FlowBuilder
FlowBuilderException
- an exception occurred building this flowpublic boolean hasFlowChanged()
FlowBuilder
hasFlowChanged
in interface FlowBuilder
public java.lang.String getFlowResourceString()
FlowBuilder
getFlowResourceString
in interface FlowBuilder
protected void doDispose()