Class FlowBuilderServicesBuilder
java.lang.Object
org.springframework.webflow.config.FlowBuilderServicesBuilder
A builder for creating
FlowBuilderServices
instances designed for programmatic
use in @Bean
factory methods. For XML configuration consider using the
webflow-config
XML namespace.- Since:
- 2.4
- Author:
- Rossen Stoyanchev
-
Constructor Summary
ConstructorDescriptionFlowBuilderServicesBuilder
(org.springframework.context.ApplicationContext applicationContext) Deprecated.as of 2.5 an ApplicationContext is no longer required -
Method Summary
Modifier and TypeMethodDescriptionbuild()
Create and return aFlowBuilderServices
instance.setConversionService
(ConversionService conversionService) Set theConversionService
to use.setDevelopmentMode
(boolean enableDevelopmentMode) Put all flows in development mode.setExpressionParser
(ExpressionParser expressionParser) Set theExpressionParser
to use.TheValidationHintResolver
to use to resolve validation hints such as bean validation groups.setValidator
(org.springframework.validation.Validator validator) Set theValidator
to use for validating a model declared on a view state.setViewFactoryCreator
(ViewFactoryCreator viewFactoryCreator) Set a customViewFactoryCreator
to use for rendering.
-
Constructor Details
-
FlowBuilderServicesBuilder
public FlowBuilderServicesBuilder() -
FlowBuilderServicesBuilder
public FlowBuilderServicesBuilder(org.springframework.context.ApplicationContext applicationContext) Deprecated.as of 2.5 an ApplicationContext is no longer requiredCreate a new instance with the given ApplicationContext.
-
-
Method Details
-
setConversionService
Set theConversionService
to use. By default aDefaultConversionService
instance is used.- Parameters:
conversionService
- the conversion service
-
setExpressionParser
Set theExpressionParser
to use. By default aWebFlowSpringELExpressionParser
with SpEL expressions is used.- Parameters:
expressionParser
- the expression parser to use
-
setViewFactoryCreator
Set a customViewFactoryCreator
to use for rendering. By default anMvcViewFactoryCreator
instance is used.- Parameters:
viewFactoryCreator
- the ViewFactory creator to use
-
setValidator
Set theValidator
to use for validating a model declared on a view state. By default bean validation (JSR-303) is enabled if a bean validation provider is present on the classpath.- Parameters:
validator
- the validator to use
-
setValidationHintResolver
TheValidationHintResolver
to use to resolve validation hints such as bean validation groups. By default aBeanValidationHintResolver
is used.- Parameters:
resolver
- the resolver to use
-
setDevelopmentMode
Put all flows in development mode. When set totrue
, changes to a flow definition are auto-detected and result in a flow refresh. By default this is set tofalse
- Parameters:
enableDevelopmentMode
- whether to enable development mode
-
build
Create and return aFlowBuilderServices
instance.
-