String configDirectory = System.getProperty("user.home") + File.separator + ".jSite";
- ProjectManager projectManager = new ProjectManager(configDirectory);
- core.setProjectManager(projectManager);
-
NodeManager nodeManager = new NodeManager("jSite-" + Version.getVersion(), configDirectory);
core.setNodeManager(nodeManager);
nodeManager.addNodeListener(core);
+ ProjectManager projectManager = new ProjectManager(configDirectory);
+ core.setProjectManager(projectManager);
+ projectManager.setNodeManager(nodeManager);
+
RequestManager requestManager = new RequestManager();
core.setRequestManager(requestManager);
nodeManager.addNodeListener(requestManager);