org.apache.myfaces.application
Class StateManagerImpl

java.lang.Object
  extended by javax.faces.application.StateManager
      extended by org.apache.myfaces.application.StateManagerImpl

public class StateManagerImpl
extends StateManager


Nested Class Summary
 
Nested classes/interfaces inherited from class javax.faces.application.StateManager
StateManager.SerializedView
 
Field Summary
 
Fields inherited from class javax.faces.application.StateManager
FULL_STATE_SAVING_VIEW_IDS_PARAM_NAME, IS_BUILDING_INITIAL_STATE, IS_SAVING_STATE, PARTIAL_STATE_SAVING_PARAM_NAME, STATE_SAVING_METHOD_CLIENT, STATE_SAVING_METHOD_PARAM_NAME, STATE_SAVING_METHOD_SERVER
 
Constructor Summary
StateManagerImpl()
           
 
Method Summary
protected  Object getComponentStateToSave(FacesContext facesContext)
           
protected  RenderKitFactory getRenderKitFactory()
           
protected  Object getTreeStructureToSave(FacesContext facesContext)
          Return an object which contains info about the UIComponent type of each node in the view tree.
 UIViewRoot restoreView(FacesContext facesContext, String viewId, String renderKitId)
           
 Object saveView(FacesContext facesContext)
          Wrap the original method and redirect to VDL StateManagementStrategy when necessary
 void writeState(FacesContext facesContext, Object state)
           
 
Methods inherited from class javax.faces.application.StateManager
getViewState, isSavingStateInClient, restoreComponentState, restoreTreeStructure, saveSerializedView, writeState
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

StateManagerImpl

public StateManagerImpl()
Method Detail

getComponentStateToSave

protected Object getComponentStateToSave(FacesContext facesContext)
Overrides:
getComponentStateToSave in class StateManager

getTreeStructureToSave

protected Object getTreeStructureToSave(FacesContext facesContext)
Return an object which contains info about the UIComponent type of each node in the view tree. This allows an identical UIComponent tree to be recreated later, though all the components will have just default values for their members.

Overrides:
getTreeStructureToSave in class StateManager

restoreView

public UIViewRoot restoreView(FacesContext facesContext,
                              String viewId,
                              String renderKitId)
Specified by:
restoreView in class StateManager

saveView

public Object saveView(FacesContext facesContext)
Wrap the original method and redirect to VDL StateManagementStrategy when necessary

Overrides:
saveView in class StateManager

writeState

public void writeState(FacesContext facesContext,
                       Object state)
                throws IOException
Overrides:
writeState in class StateManager
Throws:
IOException

getRenderKitFactory

protected RenderKitFactory getRenderKitFactory()


Copyright © 2014 The Apache Software Foundation. All Rights Reserved.