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
ConstructorsConstructorDescriptionFlowBuilderServicesBuilder(org.springframework.context.ApplicationContext applicationContext) Deprecated.as of 2.5 an ApplicationContext is no longer required -
Method Summary
Modifier and TypeMethodDescriptionbuild()Create and return aFlowBuilderServicesinstance.setConversionService(ConversionService conversionService) Set theConversionServiceto use.setDevelopmentMode(boolean enableDevelopmentMode) Put all flows in development mode.setExpressionParser(ExpressionParser expressionParser) Set theExpressionParserto use.TheValidationHintResolverto use to resolve validation hints such as bean validation groups.setValidator(org.springframework.validation.Validator validator) Set theValidatorto use for validating a model declared on a view state.setViewFactoryCreator(ViewFactoryCreator viewFactoryCreator) Set a customViewFactoryCreatorto 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 theConversionServiceto use. By default aDefaultConversionServiceinstance is used.- Parameters:
conversionService- the conversion service
-
setExpressionParser
Set theExpressionParserto use. By default aWebFlowSpringELExpressionParserwith SpEL expressions is used.- Parameters:
expressionParser- the expression parser to use
-
setViewFactoryCreator
Set a customViewFactoryCreatorto use for rendering. By default anMvcViewFactoryCreatorinstance is used.- Parameters:
viewFactoryCreator- the ViewFactory creator to use
-
setValidator
Set theValidatorto 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
TheValidationHintResolverto use to resolve validation hints such as bean validation groups. By default aBeanValidationHintResolveris 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 aFlowBuilderServicesinstance.
-