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 import javax.faces.FacesWrapper;
26
27
28
29
30 public abstract class StateManagerWrapper extends StateManager implements FacesWrapper<StateManager>
31 {
32
33 public abstract StateManager getWrapped();
34
35 @SuppressWarnings("deprecation")
36 @Override
37 public StateManager.SerializedView saveSerializedView(FacesContext context)
38 {
39 return getWrapped().saveSerializedView(context);
40 }
41
42 @Override
43 public Object saveView(FacesContext context)
44 {
45 return getWrapped().saveView(context);
46 }
47
48 @Override
49 public boolean isSavingStateInClient(FacesContext context)
50 {
51 return getWrapped().isSavingStateInClient(context);
52 }
53
54 @SuppressWarnings("deprecation")
55 @Override
56 protected Object getTreeStructureToSave(FacesContext context)
57 {
58 return getWrapped().getTreeStructureToSave(context);
59 }
60
61 @SuppressWarnings("deprecation")
62 @Override
63 protected Object getComponentStateToSave(FacesContext context)
64 {
65 return getWrapped().getComponentStateToSave(context);
66 }
67
68 @SuppressWarnings("deprecation")
69 @Override
70 public void writeState(FacesContext context, StateManager.SerializedView state) throws IOException
71 {
72 getWrapped().writeState(context, state);
73 }
74
75 @Override
76 public void writeState(FacesContext context, Object state) throws IOException
77 {
78 getWrapped().writeState(context, state);
79 }
80
81 @Override
82 public UIViewRoot restoreView(FacesContext context, String viewId, String renderKitId)
83 {
84 return getWrapped().restoreView(context, viewId, renderKitId);
85 }
86
87 @SuppressWarnings("deprecation")
88 @Override
89 protected UIViewRoot restoreTreeStructure(FacesContext context, String viewId, String renderKitId)
90 {
91 return getWrapped().restoreTreeStructure(context, viewId, renderKitId);
92 }
93
94 @SuppressWarnings("deprecation")
95 @Override
96 protected void restoreComponentState(FacesContext context, UIViewRoot viewRoot, String renderKitId)
97 {
98 getWrapped().restoreComponentState(context, viewRoot, renderKitId);
99 }
100
101 @Override
102 public String getViewState(FacesContext context)
103 {
104 return getWrapped().getViewState(context);
105 }
106
107 }