/** The logger. */
private static final Logger logger = Logger.getLogger(RequestManager.class.getName());
+ /** Request event manager. */
+ private final RequestListenerManager requestListenerManager = new RequestListenerManager();
+
/** The node manager. */
private final NodeManager nodeManager;
}
//
+ // LISTENER MANAGEMENT
+ //
+
+ /**
+ * Adds the given request listener to the list of registered listeners.
+ *
+ * @see RequestListenerManager#addListener(RequestListener)
+ * @param requestListener
+ * The request listener to add
+ */
+ public void addRequestListener(RequestListener requestListener) {
+ requestListenerManager.addListener(requestListener);
+ }
+
+ /**
+ * Removes the given request listener from the list of registered listeners.
+ *
+ * @see RequestListenerManager#removeListener(RequestListener)
+ * @param requestListener
+ * The request listener to remove
+ */
+ public void removeRequestListener(RequestListener requestListener) {
+ requestListenerManager.removeListener(requestListener);
+ }
+
+ //
// ACTIONS
//