From: David ‘Bombe’ Roden Date: Fri, 16 May 2008 16:14:38 +0000 (+0000) Subject: add node manager to project manager X-Git-Url: https://git.pterodactylus.net/?a=commitdiff_plain;h=373b2e1797186965bf754410dd3fadff78e9d616;p=jSite2.git add node manager to project manager git-svn-id: http://trooper/svn/projects/jSite/trunk@903 c3eda9e8-030b-0410-8277-bc7414b0a119 --- diff --git a/src/net/pterodactylus/jsite/main/Main.java b/src/net/pterodactylus/jsite/main/Main.java index be543eb..0c157a8 100644 --- a/src/net/pterodactylus/jsite/main/Main.java +++ b/src/net/pterodactylus/jsite/main/Main.java @@ -56,13 +56,14 @@ public class Main { 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);