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
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Create and return aFlowBuilderServices
instance.setConversionService
(ConversionService conversionService) Set theConversionService
to 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 theExpressionParser
to use.TheValidationHintResolver
to use to resolve validation hints such as bean validation groups.setValidator
(org.springframework.validation.Validator validator) Set theValidator
to use for validating a model declared on a view state.setViewFactoryCreator
(ViewFactoryCreator viewFactoryCreator) Set a customViewFactoryCreator
to 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 theConversionService
to use. By default aDefaultConversionService
instance is used.- Parameters:
conversionService
- the conversion service
-
setExpressionParser
Set theExpressionParser
to use. By default aWebFlowSpringELExpressionParser
with SpEL expressions is used.- Parameters:
expressionParser
- the expression parser to use
-
setViewFactoryCreator
Set a customViewFactoryCreator
to use for rendering. By default anJsfViewFactoryCreator
instance is used.- Parameters:
viewFactoryCreator
- the ViewFactory creator to use
-
setValidator
Set theValidator
to use for validating a model declared on a view state. By default no validator is set.- Parameters:
validator
- the validator to use
-
setValidationHintResolver
TheValidationHintResolver
to use to resolve validation hints such as bean validation groups. By default aBeanValidationHintResolver
is 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 aFlowBuilderServices
instance.
-