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

    Constructors
    Constructor
    Description
    FlowApplication(jakarta.faces.application.Application wrapped)
    Class constructor that accepts a delegate Application instance.
  • Method Summary

    Modifier and Type
    Method
    Description
    jakarta.faces.application.Application
     
    void
    setStateManager(jakarta.faces.application.StateManager manager)
    Inserts FlowStateManager in front of the given StateManager (if not already done).
    void
    setViewHandler(jakarta.faces.application.ViewHandler handler)
    Inserts a FlowViewHandler 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

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • 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 with FlowStateManager and a FlowViewHandler instance.
      Parameters:
      wrapped - the wrapped Application instance.
  • Method Details

    • getWrapped

      public jakarta.faces.application.Application getWrapped()
      Specified by:
      getWrapped in interface jakarta.faces.FacesWrapper<jakarta.faces.application.Application>
      Overrides:
      getWrapped in class jakarta.faces.application.ApplicationWrapper
    • setStateManager

      public void setStateManager(jakarta.faces.application.StateManager manager)
      Inserts FlowStateManager in front of the given StateManager (if not already done).
      Overrides:
      setStateManager in class jakarta.faces.application.ApplicationWrapper
    • setViewHandler

      public void setViewHandler(jakarta.faces.application.ViewHandler handler)
      Inserts a FlowViewHandler in front of the given ViewHandler (if not already done).
      Overrides:
      setViewHandler in class jakarta.faces.application.ApplicationWrapper