01: /*
02: * Copyright (c) 1998-2008 Caucho Technology -- all rights reserved
03: *
04: * This file is part of Resin(R) Open Source
05: *
06: * Each copy or derived work must preserve the copyright notice and this
07: * notice unmodified.
08: *
09: * Resin Open Source is free software; you can redistribute it and/or modify
10: * it under the terms of the GNU General Public License version 2
11: * as published by the Free Software Foundation.
12: *
13: * Resin Open Source is distributed in the hope that it will be useful,
14: * but WITHOUT ANY WARRANTY; without even the implied warranty of
15: * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE, or any warranty
16: * of NON-INFRINGEMENT. See the GNU General Public License for more
17: * details.
18: *
19: * You should have received a copy of the GNU General Public License
20: * along with Resin Open Source; if not, write to the
21: *
22: * Free Software Foundation, Inc.
23: * 59 Temple Place, Suite 330
24: * Boston, MA 02111-1307 USA
25: *
26: * @author Scott Ferguson
27: */
28:
29: package javax.faces.application;
30:
31: import java.io.*;
32:
33: import javax.faces.component.*;
34: import javax.faces.context.*;
35:
36: public abstract class StateManagerWrapper extends StateManager {
37: abstract protected StateManager getWrapped();
38:
39: @Deprecated
40: public SerializedView saveSerializedView(FacesContext context) {
41: return getWrapped().saveSerializedView(context);
42: }
43:
44: /**
45: * @Since 1.2
46: */
47: public Object saveView(FacesContext context) {
48: return getWrapped().saveView(context);
49: }
50:
51: @Deprecated
52: protected Object getTreeStructureToSave(FacesContext context) {
53: return getWrapped().getTreeStructureToSave(context);
54: }
55:
56: @Deprecated
57: protected Object getComponentStateToSave(FacesContext context) {
58: return getWrapped().getComponentStateToSave(context);
59: }
60:
61: /**
62: * @Since 1.2
63: */
64: public void writeState(FacesContext context, Object state)
65: throws IOException {
66: getWrapped().writeState(context, state);
67: }
68:
69: @Deprecated
70: public void writeState(FacesContext context, SerializedView state)
71: throws IOException {
72: getWrapped().writeState(context, state);
73: }
74:
75: public UIViewRoot restoreView(FacesContext context, String viewId,
76: String renderKitId) {
77: return getWrapped().restoreView(context, viewId, renderKitId);
78: }
79:
80: @Deprecated
81: protected UIViewRoot restoreTreeStructure(FacesContext context,
82: String viewId, String renderKitId) {
83: return getWrapped().restoreTreeStructure(context, viewId,
84: renderKitId);
85: }
86:
87: @Deprecated
88: protected void restoreComponentState(FacesContext context,
89: UIViewRoot viewRoot, String renderKitId) {
90: getWrapped().restoreComponentState(context, viewRoot,
91: renderKitId);
92: }
93:
94: public boolean isSavingStateInClient(FacesContext context) {
95: return getWrapped().isSavingStateInClient(context);
96: }
97: }
|