*/
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
//
core.setNodeManager(nodeManager);
nodeManager.addNodeListener(core);
- RequestManager requestManager = new RequestManager();
+ RequestManager requestManager = new RequestManager(nodeManager);
nodeManager.addNodeListener(requestManager);
core.setRequestManager(requestManager);