BUG-868: use a single version of ClassLoaderUtils
[controller.git] / opendaylight / md-sal / sal-dom-api / src / main / java / org / opendaylight / controller / sal / core / api / notify / NotificationService.java
index 3bf10546e50fc70331e943514defbad6999189a5..f654ca9ad6c87ee3c9e0c4b5bcb58ab0004d0708 100644 (file)
@@ -11,6 +11,7 @@ import org.opendaylight.controller.sal.core.api.BrokerService;
 import org.opendaylight.controller.sal.core.api.Provider;
 import org.opendaylight.controller.sal.core.api.RpcImplementation;
 import org.opendaylight.controller.sal.core.api.Broker.ProviderSession;
+import org.opendaylight.yangtools.concepts.Registration;
 import org.opendaylight.yangtools.yang.common.QName;
 
 
@@ -40,15 +41,6 @@ public interface NotificationService extends BrokerService {
      * @param notification
      * @param listener
      */
-    void addNotificationListener(QName notification,
-            NotificationListener listener);
-
-    /**
-     * Removes a notification listener for supplied notification type.
-     * 
-     * @param notification
-     * @param listener
-     */
-    void removeNotificationListener(QName notification,
+    Registration<NotificationListener> addNotificationListener(QName notification,
             NotificationListener listener);
 }