Package org.springframework.faces.config
Class AbstractFacesFlowConfiguration
java.lang.Object
org.springframework.faces.config.AbstractFacesFlowConfiguration
- All Implemented Interfaces:
org.springframework.beans.factory.Aware,org.springframework.context.ApplicationContextAware
public class AbstractFacesFlowConfiguration
extends Object
implements org.springframework.context.ApplicationContextAware
A base class for
@Configuration classes to configure
Spring Web Flow in JSF applications.
Provides protected method access to builders for one (or more) of the following:
Also registers a HandlerMapping bean to provide JSF 2 resource handling at
"/jakarta.faces.resource/**" or Rich Faces at "/rfRes/**".
- Since:
- 2.4
- Author:
- Rossen Stoyanchev
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionorg.springframework.context.ApplicationContextprotected FlowBuilderServicesBuilderReturn a builder for creating aFlowBuilderServicesinstance.protected FlowDefinitionRegistryBuilderReturn a builder for creating aFlowDefinitionRegistryinstance.protected FlowDefinitionRegistryBuildergetFlowDefinitionRegistryBuilder(FlowBuilderServices flowBuilderServices) Return a builder for creating aFlowDefinitionRegistryinstance.protected FlowExecutorBuildergetFlowExecutorBuilder(FlowDefinitionLocator flowRegistry) Return a builder for creating aFlowExecutorinstance.org.springframework.web.servlet.mvc.HttpRequestHandlerAdapterorg.springframework.web.servlet.handler.SimpleUrlHandlerMappingvoidsetApplicationContext(org.springframework.context.ApplicationContext applicationContext)
-
Constructor Details
-
AbstractFacesFlowConfiguration
public AbstractFacesFlowConfiguration()
-
-
Method Details
-
setApplicationContext
public void setApplicationContext(org.springframework.context.ApplicationContext applicationContext) - Specified by:
setApplicationContextin interfaceorg.springframework.context.ApplicationContextAware
-
getApplicationContext
public org.springframework.context.ApplicationContext getApplicationContext() -
getFlowExecutorBuilder
Return a builder for creating aFlowExecutorinstance.- Parameters:
flowRegistry- theFlowDefinitionRegistryto configure on the flow executor- Returns:
- the created builder
-
getFlowDefinitionRegistryBuilder
Return a builder for creating aFlowDefinitionRegistryinstance.- Returns:
- the created builder
-
getFlowDefinitionRegistryBuilder
protected FlowDefinitionRegistryBuilder getFlowDefinitionRegistryBuilder(FlowBuilderServices flowBuilderServices) Return a builder for creating aFlowDefinitionRegistryinstance.- Parameters:
flowBuilderServices- theFlowBuilderServicesto configure on the flow registry with- Returns:
- the created builder
-
getFlowBuilderServicesBuilder
Return a builder for creating aFlowBuilderServicesinstance.- Returns:
- the created builder
-
jsrResourceHandlerMapping
@Bean public org.springframework.web.servlet.handler.SimpleUrlHandlerMapping jsrResourceHandlerMapping() -
jsfResourceRequestHandler
-
httpRequestHandlerAdapter
@Bean public org.springframework.web.servlet.mvc.HttpRequestHandlerAdapter httpRequestHandlerAdapter()
-