X-Git-Url: https://git.opendaylight.org/gerrit/gitweb?a=blobdiff_plain;ds=sidebyside;f=opendaylight%2Fmd-sal%2Fsal-dom-api%2Fsrc%2Fmain%2Fjava%2Forg%2Fopendaylight%2Fcontroller%2Fmd%2Fsal%2Fdom%2Fapi%2FDOMNotificationService.java;h=1e4625bb2c73e9defbd02215015e606f7c5fa3f4;hb=b4bf55727093657662d8c16a50fa85f87978a586;hp=036ea24cb16541fe44fc52bd603201b7a5066d5e;hpb=35d50d7b5b69ebb08c753a699bf0aa1e645027fe;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 036ea24cb1..1e4625bb2c 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 @@ -8,16 +8,18 @@ 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.eclipse.jdt.annotation.NonNull; 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. + * + * @deprecated Use {@link org.opendaylight.mdsal.dom.api.DOMNotificationService} instead */ -public interface DOMNotificationService extends DOMService, BrokerService { +@Deprecated +public interface DOMNotificationService extends DOMService { /** * Register a {@link DOMNotificationListener} to receive a set of notifications. As with * other ListenerRegistration-based interfaces, registering an instance multiple times @@ -26,13 +28,14 @@ public interface DOMNotificationService extends DOMService, BrokerService { * @param listener Notification instance to register * @param types Notification types which should be delivered to the listener. Duplicate * entries are processed only once, null entries are ignored. - * @return Registration handle. Invoking {@link DOMNotificationListenerRegistration#close()} + * @return Registration handle. Invoking {@link ListenerRegistration#close()} * will stop the delivery of notifications to the listener * @throws IllegalArgumentException if types is empty or contains an invalid element, such as * null or a SchemaPath which does not represent a valid {@link DOMNotification} type. * @throws NullPointerException if either of the arguments is null */ - ListenerRegistration registerNotificationListener(@Nonnull T listener, @Nonnull Collection types); + ListenerRegistration registerNotificationListener( + @NonNull T listener, @NonNull Collection types); /** * Register a {@link DOMNotificationListener} to receive a set of notifications. As with @@ -42,12 +45,13 @@ public interface DOMNotificationService extends DOMService, BrokerService { * @param listener Notification instance to register * @param types Notification types which should be delivered to the listener. Duplicate * entries are processed only once, null entries are ignored. - * @return Registration handle. Invoking {@link DOMNotificationListenerRegistration#close()} + * @return Registration handle. Invoking {@link ListenerRegistration#close()} * will stop the delivery of notifications to the listener * @throws IllegalArgumentException if types is empty or contains an invalid element, such as * null or a SchemaPath which does not represent a valid {@link DOMNotification} type. * @throws NullPointerException if listener is null */ // FIXME: Java 8: provide a default implementation of this method. - ListenerRegistration registerNotificationListener(@Nonnull T listener, SchemaPath... types); + ListenerRegistration registerNotificationListener( + @NonNull T listener, SchemaPath... types); }