org.apache.shale.test.mock
Class MockStateManager

java.lang.Object
  extended by javax.faces.application.StateManager
      extended by org.apache.shale.test.mock.MockStateManager

public class MockStateManager
extends javax.faces.application.StateManager

Mock implementation of StateManager.

$Id$


Nested Class Summary
 
Nested classes/interfaces inherited from class javax.faces.application.StateManager
javax.faces.application.StateManager.SerializedView
 
Field Summary
 
Fields inherited from class javax.faces.application.StateManager
STATE_SAVING_METHOD_CLIENT, STATE_SAVING_METHOD_PARAM_NAME, STATE_SAVING_METHOD_SERVER
 
Constructor Summary
MockStateManager()
          Construct a default instance.
 
Method Summary
 Object getComponentStateToSave(javax.faces.context.FacesContext context)
          
 Object getTreeStructureToSave(javax.faces.context.FacesContext context)
          
 void restoreComponentState(javax.faces.context.FacesContext context, javax.faces.component.UIViewRoot view, String renderKitId)
          
 javax.faces.component.UIViewRoot restoreTreeStructure(javax.faces.context.FacesContext context, String viewId, String renderKitId)
          
 javax.faces.component.UIViewRoot restoreView(javax.faces.context.FacesContext context, String viewId, String renderKitId)
          
 javax.faces.application.StateManager.SerializedView saveSerializedView(javax.faces.context.FacesContext context)
          
 void writeState(javax.faces.context.FacesContext context, javax.faces.application.StateManager.SerializedView view)
          
 
Methods inherited from class javax.faces.application.StateManager
isSavingStateInClient, saveView, writeState
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MockStateManager

public MockStateManager()

Construct a default instance.

Method Detail

saveSerializedView

public javax.faces.application.StateManager.SerializedView saveSerializedView(javax.faces.context.FacesContext context)

Overrides:
saveSerializedView in class javax.faces.application.StateManager

getTreeStructureToSave

public Object getTreeStructureToSave(javax.faces.context.FacesContext context)

Overrides:
getTreeStructureToSave in class javax.faces.application.StateManager

getComponentStateToSave

public Object getComponentStateToSave(javax.faces.context.FacesContext context)

Overrides:
getComponentStateToSave in class javax.faces.application.StateManager

writeState

public void writeState(javax.faces.context.FacesContext context,
                       javax.faces.application.StateManager.SerializedView view)
                throws IOException

Overrides:
writeState in class javax.faces.application.StateManager
Throws:
IOException

restoreView

public javax.faces.component.UIViewRoot restoreView(javax.faces.context.FacesContext context,
                                                    String viewId,
                                                    String renderKitId)

Specified by:
restoreView in class javax.faces.application.StateManager

restoreTreeStructure

public javax.faces.component.UIViewRoot restoreTreeStructure(javax.faces.context.FacesContext context,
                                                             String viewId,
                                                             String renderKitId)

Overrides:
restoreTreeStructure in class javax.faces.application.StateManager

restoreComponentState

public void restoreComponentState(javax.faces.context.FacesContext context,
                                  javax.faces.component.UIViewRoot view,
                                  String renderKitId)

Overrides:
restoreComponentState in class javax.faces.application.StateManager


Copyright © 2004-2007 Apache Software Foundation. All Rights Reserved.