|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.springframework.webflow.engine.builder.BaseFlowBuilder
public abstract class BaseFlowBuilder
Abstract base implementation of a flow builder defining common functionality needed by most concrete flow builder
implementations. This class implements all optional parts of the FlowBuilder process as no-op methods. Subclasses are
only required to implement init(String, AttributeMap) and buildStates().
This class also provides a FlowServiceLocator for use by subclasses in the flow construction process.
FlowServiceLocator| Constructor Summary | |
|---|---|
protected |
BaseFlowBuilder()
Default constructor for subclassing. |
protected |
BaseFlowBuilder(FlowServiceLocator flowServiceLocator)
Creates a flow builder using the given locator to link in artifacts. |
| Method Summary | |
|---|---|
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 |
buildInlineFlows()
Builds any "in-line" flows encapsulated by 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. |
void |
dispose()
Shutdown the builder, releasing any resources it holds. |
protected org.springframework.binding.convert.ConversionExecutor |
fromStringTo(java.lang.Class targetType)
Returns a converter capable of converting a string value to the given type. |
protected org.springframework.binding.convert.ConversionExecutor |
fromStringTo(java.lang.String targetAlias)
Returns a conversion executor capable of converting string objects to the target class aliased by the provided alias. |
Flow |
getFlow()
Get the flow (result) built by this builder. |
FlowServiceLocator |
getFlowServiceLocator()
Returns the configured flow service locator. |
abstract void |
init(java.lang.String flowId,
AttributeMap attributes)
Initialize this builder. |
protected void |
setFlow(Flow flow)
Set the flow being built by this builder. |
void |
setFlowServiceLocator(FlowServiceLocator flowServiceLocator)
Sets the flow service locator to use. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
protected BaseFlowBuilder()
BaseFlowServiceLocator.
setFlowServiceLocator(FlowServiceLocator)protected BaseFlowBuilder(FlowServiceLocator flowServiceLocator)
flowServiceLocator - the locator for services needed by this builder to build its Flow| Method Detail |
|---|
public FlowServiceLocator getFlowServiceLocator()
public void setFlowServiceLocator(FlowServiceLocator flowServiceLocator)
BaseFlowServiceLocator.
protected void setFlow(Flow flow)
getFlow() after building.
public abstract void init(java.lang.String flowId,
AttributeMap attributes)
throws FlowBuilderException
FlowBuilder
init in interface FlowBuilderflowId - the identifier to assign to the flowattributes - custom attributes to assign to the flow
FlowBuilderException - an exception occured building the flow
public void buildVariables()
throws FlowBuilderException
FlowBuilder
buildVariables in interface FlowBuilderFlowBuilderException - an exception occured building the flow
public void buildInputMapper()
throws FlowBuilderException
FlowBuilder
buildInputMapper in interface FlowBuilderFlowBuilderException - an exception occured building the flow
public void buildStartActions()
throws FlowBuilderException
FlowBuilder
buildStartActions in interface FlowBuilderFlowBuilderException - an exception occured building the flow
public void buildInlineFlows()
throws FlowBuilderException
FlowBuilder
buildInlineFlows in interface FlowBuilderFlowBuilderException - an exception occured building the flow
public abstract void buildStates()
throws FlowBuilderException
FlowBuilder
buildStates in interface FlowBuilderFlowBuilderException - an exception occured building the flow
public void buildGlobalTransitions()
throws FlowBuilderException
FlowBuilder
buildGlobalTransitions in interface FlowBuilderFlowBuilderException - an exception occured building the flow
public void buildEndActions()
throws FlowBuilderException
FlowBuilder
buildEndActions in interface FlowBuilderFlowBuilderException - an exception occured building the flow
public void buildOutputMapper()
throws FlowBuilderException
FlowBuilder
buildOutputMapper in interface FlowBuilderFlowBuilderException - an exception occured building the flow
public void buildExceptionHandlers()
throws FlowBuilderException
FlowBuilder
buildExceptionHandlers in interface FlowBuilderFlowBuilderException - an exception occured building this flowpublic Flow getFlow()
getFlow in interface FlowBuilderpublic void dispose()
FlowBuilderFlowBuilder.init(String, AttributeMap) method.
dispose in interface FlowBuilderprotected org.springframework.binding.convert.ConversionExecutor fromStringTo(java.lang.String targetAlias)
targetAlias - the target class alias, e.g. "long" or "float"
null if no suitable converter exists for given alias
protected org.springframework.binding.convert.ConversionExecutor fromStringTo(java.lang.Class targetType)
throws org.springframework.binding.convert.ConversionException
targetType - the type you wish to convert to (from a string)
org.springframework.binding.convert.ConversionException - when the converter cannot be found
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||