Spring Web Flow

org.springframework.faces.webflow
Class FlowApplication

java.lang.Object
  extended by javax.faces.application.Application
      extended by javax.faces.application.ApplicationWrapper
          extended by org.springframework.faces.webflow.FlowApplication
All Implemented Interfaces:
javax.faces.FacesWrapper<javax.faces.application.Application>

public class FlowApplication
extends javax.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
FlowApplication(javax.faces.application.Application wrapped)
          Class constructor that accepts a delegate Application instance.
 
Method Summary
 javax.faces.application.Application getWrapped()
           
 void setStateManager(javax.faces.application.StateManager manager)
          Inserts FlowStateManager in front of the given StateManager (if not already done).
 void setViewHandler(javax.faces.application.ViewHandler handler)
          Inserts a FlowViewHandler in front of the given ViewHandler (if not already done).
 
Methods inherited from class javax.faces.application.ApplicationWrapper
addBehavior, addComponent, addConverter, addConverter, addDefaultValidatorId, addELContextListener, addELResolver, addValidator, createBehavior, createComponent, createComponent, createComponent, createComponent, createComponent, createComponent, createConverter, createConverter, createMethodBinding, createValidator, createValueBinding, evaluateExpressionGet, getActionListener, getBehaviorIds, getComponentTypes, getConverterIds, getConverterTypes, getDefaultLocale, getDefaultRenderKitId, getDefaultValidatorInfo, getELContextListeners, getELResolver, getExpressionFactory, getMessageBundle, getNavigationHandler, getProjectStage, getPropertyResolver, getResourceBundle, getResourceHandler, getStateManager, getSupportedLocales, getValidatorIds, getVariableResolver, getViewHandler, publishEvent, publishEvent, removeELContextListener, setActionListener, setDefaultLocale, setDefaultRenderKitId, setMessageBundle, setNavigationHandler, setPropertyResolver, setResourceHandler, setSupportedLocales, setVariableResolver, subscribeToEvent, subscribeToEvent, unsubscribeFromEvent, unsubscribeFromEvent
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FlowApplication

public FlowApplication(javax.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 Detail

getWrapped

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

setStateManager

public void setStateManager(javax.faces.application.StateManager manager)
Inserts FlowStateManager in front of the given StateManager (if not already done).

Overrides:
setStateManager in class javax.faces.application.ApplicationWrapper

setViewHandler

public void setViewHandler(javax.faces.application.ViewHandler handler)
Inserts a FlowViewHandler in front of the given ViewHandler (if not already done).

Overrides:
setViewHandler in class javax.faces.application.ApplicationWrapper

Spring Web Flow