From: David ‘Bombe’ Roden Date: Sat, 23 May 2009 14:28:50 +0000 (+0200) Subject: Add node manager to request manager. X-Git-Url: https://git.pterodactylus.net/?a=commitdiff_plain;h=44e57f4c4bc266ba233e6403f1defb00b888c626;p=jSite2.git Add node manager to request manager. --- diff --git a/src/net/pterodactylus/jsite/core/RequestManager.java b/src/net/pterodactylus/jsite/core/RequestManager.java index 477028d..8066a12 100644 --- a/src/net/pterodactylus/jsite/core/RequestManager.java +++ b/src/net/pterodactylus/jsite/core/RequestManager.java @@ -28,6 +28,19 @@ import java.io.IOException; */ public class RequestManager implements NodeListener { + /** The node manager. */ + private final NodeManager nodeManager; + + /** + * Creates a new request manager. + * + * @param nodeManager + * The node manager to utilize + */ + public RequestManager(NodeManager nodeManager) { + this.nodeManager = nodeManager; + } + // // ACTIONS // diff --git a/src/net/pterodactylus/jsite/main/Main.java b/src/net/pterodactylus/jsite/main/Main.java index b2b3651..2400250 100644 --- a/src/net/pterodactylus/jsite/main/Main.java +++ b/src/net/pterodactylus/jsite/main/Main.java @@ -65,7 +65,7 @@ public class Main { core.setNodeManager(nodeManager); nodeManager.addNodeListener(core); - RequestManager requestManager = new RequestManager(); + RequestManager requestManager = new RequestManager(nodeManager); nodeManager.addNodeListener(requestManager); core.setRequestManager(requestManager);