01: package simpleorm.simplewebapp.eg;
02:
03: import simpleorm.simplewebapp.core.WGlobalState;
04:
05: /**
06: * Set up global state
07: */
08: public class WTestGlobals extends WGlobalState {
09:
10: static {
11: setGlobalState(new WTestGlobals());
12: }
13:
14: {
15: setMenus(new WGlobalTestMenus());
16: }
17:
18: public static WGlobalTestMenus getGlobalMenus() {
19: return (WGlobalTestMenus) getMenus();
20: }
21:
22: /** Call this at least once to make sure that this is loaded at least once to set state. */
23: static public void dummyLoadClass() {
24: };
25: }
|