public class FlowModelFlowBuilder extends AbstractFlowBuilder
Constructor and Description |
---|
FlowModelFlowBuilder(FlowModelHolder flowModelHolder)
|
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.
|
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.
|
protected void |
doDispose()
Shutdown the builder, releasing any resources it holds.
|
protected void |
doInit()
Initialize this builder.
|
protected FlowModel |
getFlowModel() |
java.lang.String |
getFlowResourceString()
Returns a string describing the location of the flow resource; the logical location where the source code can be
found.
|
protected org.springframework.webflow.engine.builder.model.LocalFlowBuilderContext |
getLocalContext() |
boolean |
hasFlowChanged()
As the underlying flow managed by this builder changed since the last build occurred?
|
protected void |
registerFlowBeans(org.springframework.beans.factory.config.ConfigurableBeanFactory beanFactory)
Register beans in the bean factory local to the flow definition being built.
|
protected void |
setLocalContext(org.springframework.webflow.engine.builder.model.LocalFlowBuilderContext localFlowBuilderContext) |
java.lang.String |
toString() |
dispose, getContext, getFlow, init
public FlowModelFlowBuilder(FlowModelHolder flowModelHolder)
flowModelHolder
- the flow model holderprotected void doInit() throws FlowBuilderException
doInit
in class AbstractFlowBuilder
FlowBuilderException
- an exception occurred building the flowprotected Flow createFlow()
AbstractFlowBuilder
createFlow
in class AbstractFlowBuilder
public void buildVariables() throws FlowBuilderException
buildVariables
in interface FlowBuilder
buildVariables
in class AbstractFlowBuilder
FlowBuilderException
- an exception occurred building the flowpublic void buildInputMapper() throws FlowBuilderException
buildInputMapper
in interface FlowBuilder
buildInputMapper
in class AbstractFlowBuilder
FlowBuilderException
- an exception occurred building the flowpublic void buildStartActions() throws FlowBuilderException
buildStartActions
in interface FlowBuilder
buildStartActions
in class AbstractFlowBuilder
FlowBuilderException
- an exception occurred building the flowpublic void buildStates() throws FlowBuilderException
buildStates
in interface FlowBuilder
buildStates
in class AbstractFlowBuilder
FlowBuilderException
- an exception occurred building the flowpublic void buildGlobalTransitions() throws FlowBuilderException
buildGlobalTransitions
in interface FlowBuilder
buildGlobalTransitions
in class AbstractFlowBuilder
FlowBuilderException
- an exception occurred building the flowpublic void buildEndActions() throws FlowBuilderException
buildEndActions
in interface FlowBuilder
buildEndActions
in class AbstractFlowBuilder
FlowBuilderException
- an exception occurred building the flowpublic void buildOutputMapper() throws FlowBuilderException
buildOutputMapper
in interface FlowBuilder
buildOutputMapper
in class AbstractFlowBuilder
FlowBuilderException
- an exception occurred building the flowpublic void buildExceptionHandlers() throws FlowBuilderException
buildExceptionHandlers
in interface FlowBuilder
buildExceptionHandlers
in class AbstractFlowBuilder
FlowBuilderException
- an exception occurred building this flowpublic boolean hasFlowChanged()
FlowBuilder
hasFlowChanged
in interface FlowBuilder
hasFlowChanged
in class AbstractFlowBuilder
public java.lang.String getFlowResourceString()
FlowBuilder
getFlowResourceString
in interface FlowBuilder
getFlowResourceString
in class AbstractFlowBuilder
protected void doDispose() throws FlowBuilderException
AbstractFlowBuilder.init(FlowBuilderContext)
method.doDispose
in class AbstractFlowBuilder
FlowBuilderException
- an exception occurred building this flowprotected FlowModel getFlowModel()
protected org.springframework.webflow.engine.builder.model.LocalFlowBuilderContext getLocalContext()
protected void setLocalContext(org.springframework.webflow.engine.builder.model.LocalFlowBuilderContext localFlowBuilderContext)
protected void registerFlowBeans(org.springframework.beans.factory.config.ConfigurableBeanFactory beanFactory)
Subclasses may override this method to customize the population of the bean factory local to the flow definition being built; for example, to register mock implementations of services in a test environment.
beanFactory
- the bean factory; register local beans with it using
SingletonBeanRegistry.registerSingleton(String, Object)
public java.lang.String toString()
toString
in class java.lang.Object