Package org.springframework.faces.config
Class FlowBuilderServicesBuilder
java.lang.Object
org.springframework.faces.config.FlowBuilderServicesBuilder
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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionorg.springframework.webflow.engine.builder.support.FlowBuilderServicesbuild()Create and return aFlowBuilderServicesinstance.setConversionService(org.springframework.binding.convert.ConversionService conversionService) Set theConversionServiceto use.setDevelopmentMode(boolean enableDevelopmentMode) Put all flows in development mode.setEnableManagedBeans(boolean enableManagedBeans) Whether to enable access to JSF-managed beans from EL expressions.setExpressionParser(org.springframework.binding.expression.ExpressionParser expressionParser) Set theExpressionParserto use.setValidationHintResolver(org.springframework.webflow.validation.ValidationHintResolver resolver) 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(org.springframework.webflow.engine.builder.ViewFactoryCreator viewFactoryCreator) Set a customViewFactoryCreatorto use for rendering.
-
Constructor Details
-
FlowBuilderServicesBuilder
public FlowBuilderServicesBuilder()
-
-
Method Details
-
setEnableManagedBeans
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(org.springframework.binding.convert.ConversionService conversionService) Set theConversionServiceto use. By default aDefaultConversionServiceinstance is used.- Parameters:
conversionService- the conversion service
-
setExpressionParser
public FlowBuilderServicesBuilder setExpressionParser(org.springframework.binding.expression.ExpressionParser expressionParser) Set theExpressionParserto use. By default aWebFlowSpringELExpressionParserwith SpEL expressions is used.- Parameters:
expressionParser- the expression parser to use
-
setViewFactoryCreator
public FlowBuilderServicesBuilder setViewFactoryCreator(org.springframework.webflow.engine.builder.ViewFactoryCreator viewFactoryCreator) Set a customViewFactoryCreatorto use for rendering. By default anJsfViewFactoryCreatorinstance is used.- Parameters:
viewFactoryCreator- the ViewFactory creator to use
-
setValidator
Set theValidatorto 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(org.springframework.webflow.validation.ValidationHintResolver resolver) 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
public org.springframework.webflow.engine.builder.support.FlowBuilderServices build()Create and return aFlowBuilderServicesinstance.
-