From 44e57f4c4bc266ba233e6403f1defb00b888c626 Mon Sep 17 00:00:00 2001 From: =?utf8?q?David=20=E2=80=98Bombe=E2=80=99=20Roden?= Date: Sat, 23 May 2009 16:28:50 +0200 Subject: [PATCH] Add node manager to request manager. --- src/net/pterodactylus/jsite/core/RequestManager.java | 13 +++++++++++++ src/net/pterodactylus/jsite/main/Main.java | 2 +- 2 files changed, 14 insertions(+), 1 deletion(-) 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); -- 2.7.4