1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20 package javax.faces.application;
21
22 import java.io.IOException;
23 import javax.faces.component.UIViewRoot;
24 import javax.faces.context.FacesContext;
25
26
27
28
29
30
31 public abstract class StateManagerWrapper extends StateManager {
32
33 protected abstract StateManager getWrapped();
34
35 public StateManager.SerializedView saveSerializedView(FacesContext context) {
36 return getWrapped().saveSerializedView(context);
37 }
38
39 public Object saveView(FacesContext context) {
40 return getWrapped().saveView(context);
41 }
42
43 public boolean isSavingStateInClient(FacesContext context) {
44 return getWrapped().isSavingStateInClient(context);
45 }
46
47 protected Object getTreeStructureToSave(FacesContext context) {
48 return getWrapped().getTreeStructureToSave(context);
49 }
50
51 protected Object getComponentStateToSave(FacesContext context) {
52 return getWrapped().getComponentStateToSave(context);
53 }
54
55 public void writeState(FacesContext context, StateManager.SerializedView state) throws IOException {
56 getWrapped().writeState(context, state);
57 }
58
59 public void writeState(FacesContext context, Object state) throws IOException {
60 getWrapped().writeState(context, state);
61 }
62
63 public UIViewRoot restoreView(FacesContext context, String viewId, String renderKitId) {
64 return getWrapped().restoreView(context, viewId, renderKitId);
65 }
66
67 protected UIViewRoot restoreTreeStructure(FacesContext context, String viewId, String renderKitId) {
68 return getWrapped().restoreTreeStructure(context, viewId, renderKitId);
69 }
70
71 protected void restoreComponentState(FacesContext context, UIViewRoot viewRoot, String renderKitId) {
72 getWrapped().restoreComponentState(context, viewRoot, renderKitId);
73 }
74
75 }