public class FlowBuilderContextImpl extends java.lang.Object implements FlowBuilderContext
Constructor and Description |
---|
FlowBuilderContextImpl(java.lang.String flowId,
AttributeMap<java.lang.Object> flowAttributes,
FlowDefinitionLocator flowDefinitionLocator,
FlowBuilderServices flowBuilderServices)
Creates a new flow builder context.
|
Modifier and Type | Method and Description |
---|---|
protected ConversionService |
createConversionService()
Factory method that creates the conversion service the flow builder will use.
|
org.springframework.context.ApplicationContext |
getApplicationContext()
Returns the application context hosting the flow system.
|
ConversionService |
getConversionService()
Returns a generic type conversion service for converting between types, typically from string to a rich value
object.
|
ExpressionParser |
getExpressionParser()
Returns the expression parser for parsing expression strings.
|
FlowArtifactFactory |
getFlowArtifactFactory()
Returns the factory for core flow artifacts such as Flow and State.
|
AttributeMap<java.lang.Object> |
getFlowAttributes()
Returns externally configured attributes to assign to the flow definition being built.
|
FlowBuilderServices |
getFlowBuilderServices() |
FlowDefinitionLocator |
getFlowDefinitionLocator()
Returns the locator for locating dependent flows (subflows).
|
java.lang.String |
getFlowId()
Returns an externally configured flow definition identifier to assign to the flow being built.
|
ValidationHintResolver |
getValidationHintResolver()
Return the
ValidationHintResolver . |
org.springframework.validation.Validator |
getValidator()
Returns the Validator instance to use for validating a model.
|
ViewFactoryCreator |
getViewFactoryCreator()
Returns the view factory creator for configuring a ViewFactory per view state
|
public FlowBuilderContextImpl(java.lang.String flowId, AttributeMap<java.lang.Object> flowAttributes, FlowDefinitionLocator flowDefinitionLocator, FlowBuilderServices flowBuilderServices)
flowId
- the id to assign the flow being builtflowAttributes
- attributes to assign the flow being builtflowDefinitionLocator
- a locator to find dependent subflowsflowBuilderServices
- a parameter object providing access to additional services needed by the flow builderpublic FlowBuilderServices getFlowBuilderServices()
public java.lang.String getFlowId()
FlowBuilderContext
getFlowId
in interface FlowBuilderContext
public AttributeMap<java.lang.Object> getFlowAttributes()
FlowBuilderContext
getFlowAttributes
in interface FlowBuilderContext
public FlowArtifactFactory getFlowArtifactFactory()
FlowBuilderContext
getFlowArtifactFactory
in interface FlowBuilderContext
public FlowDefinitionLocator getFlowDefinitionLocator()
FlowBuilderContext
getFlowDefinitionLocator
in interface FlowBuilderContext
public ConversionService getConversionService()
FlowBuilderContext
getConversionService
in interface FlowBuilderContext
public ViewFactoryCreator getViewFactoryCreator()
FlowBuilderContext
getViewFactoryCreator
in interface FlowBuilderContext
public ExpressionParser getExpressionParser()
FlowBuilderContext
getExpressionParser
in interface FlowBuilderContext
public org.springframework.context.ApplicationContext getApplicationContext()
FlowBuilderContext
getApplicationContext
in interface FlowBuilderContext
public org.springframework.validation.Validator getValidator()
FlowBuilderContext
getValidator
in interface FlowBuilderContext
public ValidationHintResolver getValidationHintResolver()
FlowBuilderContext
ValidationHintResolver
.getValidationHintResolver
in interface FlowBuilderContext
protected ConversionService createConversionService()