spring-webflow

org.springframework.webflow.config
Class FlowBuilderServicesBuilder

java.lang.Object
  extended by org.springframework.webflow.config.FlowBuilderServicesBuilder

public class FlowBuilderServicesBuilder
extends java.lang.Object

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
FlowBuilderServicesBuilder(org.springframework.context.ApplicationContext applicationContext)
          Create a new instance with the given ApplicationContext.
 
Method Summary
 FlowBuilderServices build()
          Create and return a FlowBuilderServices instance.
 FlowBuilderServicesBuilder setConversionService(org.springframework.binding.convert.ConversionService conversionService)
          Set the ConversionService to use.
 FlowBuilderServicesBuilder setDevelopmentMode(boolean enableDevelopmentMode)
          Put all flows in development mode.
 FlowBuilderServicesBuilder setExpressionParser(org.springframework.binding.expression.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.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FlowBuilderServicesBuilder

public FlowBuilderServicesBuilder(org.springframework.context.ApplicationContext applicationContext)
Create a new instance with the given ApplicationContext.

Parameters:
applicationContext - the ApplicationContext to use to initialize a default ViewFactoryCreator instance with.
Method Detail

setConversionService

public FlowBuilderServicesBuilder setConversionService(org.springframework.binding.convert.ConversionService conversionService)
Set the ConversionService to use. By default a DefaultConversionService instance is used.

Parameters:
conversionService - the conversion service

setExpressionParser

public FlowBuilderServicesBuilder setExpressionParser(org.springframework.binding.expression.ExpressionParser expressionParser)
Set the ExpressionParser to use. By default a WebFlowSpringELExpressionParser with SpEL expressions is used.

Parameters:
expressionParser - the expression parser to use

setViewFactoryCreator

public FlowBuilderServicesBuilder setViewFactoryCreator(ViewFactoryCreator viewFactoryCreator)
Set a custom ViewFactoryCreator to use for rendering. By default an MvcViewFactoryCreator instance is used.

Parameters:
viewFactoryCreator - the ViewFactory creator to use

setValidator

public FlowBuilderServicesBuilder setValidator(org.springframework.validation.Validator validator)
Set the 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.

Parameters:
validator - the validator to use

setValidationHintResolver

public FlowBuilderServicesBuilder setValidationHintResolver(ValidationHintResolver resolver)
The ValidationHintResolver to use to resolve validation hints such as bean validation groups. By default a BeanValidationHintResolver is used.

Parameters:
resolver - the resolver to use

setDevelopmentMode

public FlowBuilderServicesBuilder setDevelopmentMode(boolean enableDevelopmentMode)
Put all flows in development mode. When set to true, changes to a flow definition are auto-detected and result in a flow refresh. By default this is set to false

Parameters:
enableDevelopmentMode - whether to enable development mode

build

public FlowBuilderServices build()
Create and return a FlowBuilderServices instance.


spring-webflow