Add node manager to request manager.
authorDavid ‘Bombe’ Roden <bombe@pterodactylus.net>
Sat, 23 May 2009 14:28:50 +0000 (16:28 +0200)
committerDavid ‘Bombe’ Roden <bombe@pterodactylus.net>
Sat, 23 May 2009 14:28:50 +0000 (16:28 +0200)
src/net/pterodactylus/jsite/core/RequestManager.java
src/net/pterodactylus/jsite/main/Main.java

index 477028d..8066a12 100644 (file)
@@ -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
        //
index b2b3651..2400250 100644 (file)
@@ -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);