01: package wicket.settings;
02:
03: /**
04: * Settings interface for various debug settings
05: * <p>
06: * <i>componentUseCheck </i> (defaults to true) - Causes the framework to do a
07: * check after rendering each page to ensure that each component was used in
08: * rendering the markup. If components are found that are not referenced in the
09: * markup, an appropriate error will be displayed <i>serializeSessionAttributes</i>
10: * (defaults to true in devel mode) - Causes the framework to serialize any
11: * attribute put into session - this helps find Not Serializable errors early
12: * <p>
13: *
14: *
15: * @author Igor Vaynberg (ivaynberg)
16: */
17: public interface IDebugSettings {
18: /**
19: * @return true if componentUseCheck is enabled
20: */
21: boolean getComponentUseCheck();
22:
23: /**
24: * Sets componentUseCheck debug settings
25: *
26: * @param check
27: */
28: void setComponentUseCheck(boolean check);
29:
30: /**
31: * Enables or disables ajax debug mode. See {@link IAjaxSettings} for
32: * details
33: *
34: * @param enable
35: *
36: */
37: void setAjaxDebugModeEnabled(boolean enable);
38:
39: /**
40: * Returns status of ajax debug mode. See {@link IAjaxSettings} for details
41: *
42: * @return true if ajax debug mode is enabled, false otherwise
43: *
44: */
45: boolean isAjaxDebugModeEnabled();
46:
47: /**
48: * Sets the seriaalize session attributes setting
49: *
50: * @param serialize
51: */
52: void setSerializeSessionAttributes(boolean serialize);
53:
54: /**
55: * @return true if serialize session attributes is enabled, false otherwise
56: */
57: boolean getSerializeSessionAttributes();
58:
59: }
|