public class FlowModelFlowBuilder extends AbstractFlowBuilder
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
VALIDATION_HINT_RESOLVER_FLOW_ATTR |
static java.lang.String |
VALIDATOR_FLOW_ATTR |
| 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, initpublic static final java.lang.String VALIDATOR_FLOW_ATTR
public static final java.lang.String VALIDATION_HINT_RESOLVER_FLOW_ATTR
public FlowModelFlowBuilder(FlowModelHolder flowModelHolder)
flowModelHolder - the flow model holderprotected void doInit()
throws FlowBuilderException
doInit in class AbstractFlowBuilderFlowBuilderException - an exception occurred building the flowprotected Flow createFlow()
AbstractFlowBuildercreateFlow in class AbstractFlowBuilderpublic void buildVariables()
throws FlowBuilderException
buildVariables in interface FlowBuilderbuildVariables in class AbstractFlowBuilderFlowBuilderException - an exception occurred building the flowpublic void buildInputMapper()
throws FlowBuilderException
buildInputMapper in interface FlowBuilderbuildInputMapper in class AbstractFlowBuilderFlowBuilderException - an exception occurred building the flowpublic void buildStartActions()
throws FlowBuilderException
buildStartActions in interface FlowBuilderbuildStartActions in class AbstractFlowBuilderFlowBuilderException - an exception occurred building the flowpublic void buildStates()
throws FlowBuilderException
buildStates in interface FlowBuilderbuildStates in class AbstractFlowBuilderFlowBuilderException - an exception occurred building the flowpublic void buildGlobalTransitions()
throws FlowBuilderException
buildGlobalTransitions in interface FlowBuilderbuildGlobalTransitions in class AbstractFlowBuilderFlowBuilderException - an exception occurred building the flowpublic void buildEndActions()
throws FlowBuilderException
buildEndActions in interface FlowBuilderbuildEndActions in class AbstractFlowBuilderFlowBuilderException - an exception occurred building the flowpublic void buildOutputMapper()
throws FlowBuilderException
buildOutputMapper in interface FlowBuilderbuildOutputMapper in class AbstractFlowBuilderFlowBuilderException - an exception occurred building the flowpublic void buildExceptionHandlers()
throws FlowBuilderException
buildExceptionHandlers in interface FlowBuilderbuildExceptionHandlers in class AbstractFlowBuilderFlowBuilderException - an exception occurred building this flowpublic boolean hasFlowChanged()
FlowBuilderhasFlowChanged in interface FlowBuilderhasFlowChanged in class AbstractFlowBuilderpublic java.lang.String getFlowResourceString()
FlowBuildergetFlowResourceString in interface FlowBuildergetFlowResourceString in class AbstractFlowBuilderprotected void doDispose()
throws FlowBuilderException
AbstractFlowBuilder.init(FlowBuilderContext) method.doDispose in class AbstractFlowBuilderFlowBuilderException - 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