Spring Web Flow

org.springframework.faces.config
Class FlowBuilderServicesBuilder

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

public class FlowBuilderServicesBuilder
extends java.lang.Object

A builder for FlowBuilderServices instances for use in JSF applications. Designed for programmatic use in @Bean factory methods. For XML configuration consider using the webflow-config and faces-config XML namespaces.

Since:
2.4
Author:
Rossen Stoyanchev

Constructor Summary
FlowBuilderServicesBuilder()
           
 
Method Summary
 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 setEnableManagedBeans(boolean enableManagedBeans)
          Whether to enable access to JSF-managed beans from EL expressions.
 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.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FlowBuilderServicesBuilder

public FlowBuilderServicesBuilder()
Method Detail

setEnableManagedBeans

public FlowBuilderServicesBuilder setEnableManagedBeans(boolean enableManagedBeans)
Whether to enable access to JSF-managed beans from EL expressions. When this attribute is set to true, a special EL expression parser will be registered.

Parameters:
enableManagedBeans - whether to enable JSF managed bean resolution

setConversionService

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

Parameters:
conversionService - the conversion service

setExpressionParser

public FlowBuilderServicesBuilder setExpressionParser(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 JsfViewFactoryCreator 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 no validator is set.

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 Web Flow