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 TypeMethodDescriptionbuild()Create and return aFlowBuilderServicesinstance.setConversionService(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(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()
-
-
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
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 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
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.
-