Class FlowApplication
java.lang.Object
jakarta.faces.application.Application
jakarta.faces.application.ApplicationWrapper
org.springframework.faces.webflow.FlowApplication
- All Implemented Interfaces:
jakarta.faces.FacesWrapper<jakarta.faces.application.Application>
public class FlowApplication
extends jakarta.faces.application.ApplicationWrapper
Wraps an
Application
instance in order to ensure Web Flow specific implementations of ViewHandler
and
StateManager
are inserted at the front of the processing chain in JSF environments. This is done by
intercepting the corresponding setters. All other methods are simple delegation methods.- Author:
- Rossen Stoyanchev, Phillip Webb
-
Constructor Summary
ConstructorDescriptionFlowApplication
(jakarta.faces.application.Application wrapped) Class constructor that accepts a delegate Application instance. -
Method Summary
Modifier and TypeMethodDescriptionjakarta.faces.application.Application
void
setStateManager
(jakarta.faces.application.StateManager manager) InsertsFlowStateManager
in front of the given StateManager (if not already done).void
setViewHandler
(jakarta.faces.application.ViewHandler handler) Inserts aFlowViewHandler
in front of the given ViewHandler (if not already done).Methods inherited from class jakarta.faces.application.ApplicationWrapper
addBehavior, addComponent, addConverter, addConverter, addDefaultValidatorId, addELContextListener, addELResolver, addSearchKeywordResolver, addValidator, createBehavior, createComponent, createComponent, createComponent, createComponent, createComponent, createConverter, createConverter, createValidator, evaluateExpressionGet, getActionListener, getBehaviorIds, getComponentTypes, getConverterIds, getConverterTypes, getDefaultLocale, getDefaultRenderKitId, getDefaultValidatorInfo, getELContextListeners, getELResolver, getExpressionFactory, getFlowHandler, getMessageBundle, getNavigationHandler, getProjectStage, getResourceBundle, getResourceHandler, getSearchExpressionHandler, getSearchKeywordResolver, getStateManager, getSupportedLocales, getValidatorIds, getViewHandler, publishEvent, publishEvent, removeELContextListener, setActionListener, setDefaultLocale, setDefaultRenderKitId, setFlowHandler, setMessageBundle, setNavigationHandler, setResourceHandler, setSearchExpressionHandler, setSupportedLocales, subscribeToEvent, subscribeToEvent, unsubscribeFromEvent, unsubscribeFromEvent
-
Constructor Details
-
FlowApplication
public FlowApplication(jakarta.faces.application.Application wrapped) Class constructor that accepts a delegate Application instance. If the delegate has default instantiation logic for its StateManager and ViewHandler instances, those will be wrapped withFlowStateManager
and aFlowViewHandler
instance.- Parameters:
wrapped
- the wrapped Application instance.
-
-
Method Details
-
getWrapped
public jakarta.faces.application.Application getWrapped()- Specified by:
getWrapped
in interfacejakarta.faces.FacesWrapper<jakarta.faces.application.Application>
- Overrides:
getWrapped
in classjakarta.faces.application.ApplicationWrapper
-
setStateManager
public void setStateManager(jakarta.faces.application.StateManager manager) InsertsFlowStateManager
in front of the given StateManager (if not already done).- Overrides:
setStateManager
in classjakarta.faces.application.ApplicationWrapper
-
setViewHandler
public void setViewHandler(jakarta.faces.application.ViewHandler handler) Inserts aFlowViewHandler
in front of the given ViewHandler (if not already done).- Overrides:
setViewHandler
in classjakarta.faces.application.ApplicationWrapper
-