public class FlowBuilderServicesBuilder
extends java.lang.Object
FlowBuilderServices
instances designed for programmatic
use in @Bean
factory methods. For XML configuration consider using the
webflow-config
XML namespace.Constructor and Description |
---|
FlowBuilderServicesBuilder(org.springframework.context.ApplicationContext applicationContext)
Create a new instance with the given ApplicationContext.
|
Modifier and Type | Method and Description |
---|---|
FlowBuilderServices |
build()
Create and return a
FlowBuilderServices instance. |
FlowBuilderServicesBuilder |
setConversionService(ConversionService conversionService)
Set the
ConversionService to use. |
FlowBuilderServicesBuilder |
setDevelopmentMode(boolean enableDevelopmentMode)
Put all flows in development mode.
|
FlowBuilderServicesBuilder |
setExpressionParser(ExpressionParser expressionParser)
Set the
ExpressionParser to use. |
FlowBuilderServicesBuilder |
setValidationHintResolver(ValidationHintResolver resolver)
The
ValidationHintResolver to use to resolve validation hints such as bean validation groups. |
FlowBuilderServicesBuilder |
setValidator(org.springframework.validation.Validator validator)
Set the
Validator to use for validating a model declared on a view state. |
FlowBuilderServicesBuilder |
setViewFactoryCreator(ViewFactoryCreator viewFactoryCreator)
Set a custom
ViewFactoryCreator to use for rendering. |
public FlowBuilderServicesBuilder(org.springframework.context.ApplicationContext applicationContext)
applicationContext
- the ApplicationContext to use to initialize a
default ViewFactoryCreator instance with.public FlowBuilderServicesBuilder setConversionService(ConversionService conversionService)
ConversionService
to use.
By default a DefaultConversionService
instance is used.conversionService
- the conversion servicepublic FlowBuilderServicesBuilder setExpressionParser(ExpressionParser expressionParser)
ExpressionParser
to use.
By default a WebFlowSpringELExpressionParser
with SpEL expressions is used.expressionParser
- the expression parser to usepublic FlowBuilderServicesBuilder setViewFactoryCreator(ViewFactoryCreator viewFactoryCreator)
ViewFactoryCreator
to use for rendering.
By default an MvcViewFactoryCreator
instance is used.viewFactoryCreator
- the ViewFactory creator to usepublic FlowBuilderServicesBuilder setValidator(org.springframework.validation.Validator validator)
Validator
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.validator
- the validator to usepublic FlowBuilderServicesBuilder setValidationHintResolver(ValidationHintResolver resolver)
ValidationHintResolver
to use to resolve validation hints such as bean validation groups.
By default a BeanValidationHintResolver
is used.resolver
- the resolver to usepublic FlowBuilderServicesBuilder setDevelopmentMode(boolean enableDevelopmentMode)
true
, changes to a flow
definition are auto-detected and result in a flow refresh.
By default this is set to false
enableDevelopmentMode
- whether to enable development modepublic FlowBuilderServices build()
FlowBuilderServices
instance.