01: /*
02: * ==============================================================================
03: * Licensed under the Apache License, Version 2.0 (the "License"); you may not
04: * use this file except in compliance with the License. You may obtain a copy of
05: * the License at
06: *
07: * http://www.apache.org/licenses/LICENSE-2.0
08: *
09: * Unless required by applicable law or agreed to in writing, software
10: * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
11: * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
12: * License for the specific language governing permissions and limitations under
13: * the License.
14: */
15: package wicket.jmx;
16:
17: /**
18: * Exposes Application related functionality for JMX.
19: *
20: * @author eelcohillenius
21: */
22: public class DebugSettings implements DebugSettingsMBean {
23: private final wicket.Application application;
24:
25: /**
26: * Create.
27: *
28: * @param application
29: */
30: public DebugSettings(wicket.Application application) {
31: this .application = application;
32: }
33:
34: /**
35: * @see wicket.jmx.DebugSettingsMBean#getComponentUseCheck()
36: */
37: public boolean getComponentUseCheck() {
38: return application.getDebugSettings().getComponentUseCheck();
39: }
40:
41: /**
42: * @see wicket.jmx.DebugSettingsMBean#getSerializeSessionAttributes()
43: */
44: public boolean getSerializeSessionAttributes() {
45: return application.getDebugSettings()
46: .getSerializeSessionAttributes();
47: }
48:
49: /**
50: * @see wicket.jmx.DebugSettingsMBean#isAjaxDebugModeEnabled()
51: */
52: public boolean isAjaxDebugModeEnabled() {
53: return application.getDebugSettings().isAjaxDebugModeEnabled();
54: }
55:
56: /**
57: * @see wicket.jmx.DebugSettingsMBean#setAjaxDebugModeEnabled(boolean)
58: */
59: public void setAjaxDebugModeEnabled(boolean enable) {
60: application.getDebugSettings().setAjaxDebugModeEnabled(enable);
61: }
62:
63: /**
64: * @see wicket.jmx.DebugSettingsMBean#setComponentUseCheck(boolean)
65: */
66: public void setComponentUseCheck(boolean check) {
67: application.getDebugSettings().setComponentUseCheck(check);
68: }
69:
70: /**
71: * @see wicket.jmx.DebugSettingsMBean#setSerializeSessionAttributes(boolean)
72: */
73: public void setSerializeSessionAttributes(boolean serialize) {
74: application.getDebugSettings().setSerializeSessionAttributes(
75: serialize);
76: }
77: }
|