X-Git-Url: https://git.opendaylight.org/gerrit/gitweb?a=blobdiff_plain;f=opendaylight%2Fmd-sal%2Fsal-dom-api%2Fsrc%2Fmain%2Fjava%2Forg%2Fopendaylight%2Fcontroller%2Fmd%2Fsal%2Fdom%2Fapi%2FDOMNotificationService.java;h=036ea24cb16541fe44fc52bd603201b7a5066d5e;hb=78527e81f8cc82140af5cb2649863a597f380291;hp=6bce9c447add70d54e85168045a0e10ee3a24bab;hpb=d51d1e8ce97983afcc39c1df65b368f921fc749d;p=controller.git diff --git a/opendaylight/md-sal/sal-dom-api/src/main/java/org/opendaylight/controller/md/sal/dom/api/DOMNotificationService.java b/opendaylight/md-sal/sal-dom-api/src/main/java/org/opendaylight/controller/md/sal/dom/api/DOMNotificationService.java index 6bce9c447a..036ea24cb1 100644 --- a/opendaylight/md-sal/sal-dom-api/src/main/java/org/opendaylight/controller/md/sal/dom/api/DOMNotificationService.java +++ b/opendaylight/md-sal/sal-dom-api/src/main/java/org/opendaylight/controller/md/sal/dom/api/DOMNotificationService.java @@ -9,13 +9,15 @@ package org.opendaylight.controller.md.sal.dom.api; import java.util.Collection; import javax.annotation.Nonnull; +import org.opendaylight.controller.sal.core.api.BrokerService; +import org.opendaylight.yangtools.concepts.ListenerRegistration; import org.opendaylight.yangtools.yang.model.api.SchemaPath; /** * A {@link DOMService} which allows its users to subscribe to receive * {@link DOMNotification}s. */ -public interface DOMNotificationService { +public interface DOMNotificationService extends DOMService, BrokerService { /** * Register a {@link DOMNotificationListener} to receive a set of notifications. As with * other ListenerRegistration-based interfaces, registering an instance multiple times @@ -30,7 +32,7 @@ public interface DOMNotificationService { * null or a SchemaPath which does not represent a valid {@link DOMNotification} type. * @throws NullPointerException if either of the arguments is null */ - DOMNotificationListenerRegistration registerNotificationListener(@Nonnull DOMNotificationListener listener, @Nonnull Collection types); + ListenerRegistration registerNotificationListener(@Nonnull T listener, @Nonnull Collection types); /** * Register a {@link DOMNotificationListener} to receive a set of notifications. As with @@ -47,5 +49,5 @@ public interface DOMNotificationService { * @throws NullPointerException if listener is null */ // FIXME: Java 8: provide a default implementation of this method. - DOMNotificationListenerRegistration registerNotificationListener(@Nonnull DOMNotificationListener listener, SchemaPath... types); + ListenerRegistration registerNotificationListener(@Nonnull T listener, SchemaPath... types); }