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%2Fsal%2Fcore%2Fapi%2Fnotify%2FNotificationListener.java;h=7dc8cb36c5b266c20f3521efc16e93ba3676553f;hb=0a2c659c014737c7e12a39001310de14d5f85149;hp=5b0c992a006aedfd0fd99cfe87f30bf48323e56b;hpb=2887eded48bd70a9e332e98530f23304ce153bc7;p=controller.git diff --git a/opendaylight/md-sal/sal-dom-api/src/main/java/org/opendaylight/controller/sal/core/api/notify/NotificationListener.java b/opendaylight/md-sal/sal-dom-api/src/main/java/org/opendaylight/controller/sal/core/api/notify/NotificationListener.java index 5b0c992a00..7dc8cb36c5 100644 --- a/opendaylight/md-sal/sal-dom-api/src/main/java/org/opendaylight/controller/sal/core/api/notify/NotificationListener.java +++ b/opendaylight/md-sal/sal-dom-api/src/main/java/org/opendaylight/controller/sal/core/api/notify/NotificationListener.java @@ -7,6 +7,7 @@ */ package org.opendaylight.controller.sal.core.api.notify; +import java.util.EventListener; import java.util.Set; import org.opendaylight.controller.sal.core.api.Consumer; @@ -17,24 +18,24 @@ import org.opendaylight.yangtools.yang.data.api.CompositeNode; /** * Notification listener for SAL notifications. */ -public interface NotificationListener extends Consumer.ConsumerFunctionality { +public interface NotificationListener extends Consumer.ConsumerFunctionality, EventListener { /** * A set of notification types supported by listeners. - * + * * The set of notification {@link QName}s which are supported by this * listener. This set is used, when {@link Consumer} is registered to the * SAL, to automatically register the listener. - * + * * @return Set of QNames identifying supported notifications. */ Set getSupportedNotifications(); /** * Fired when the notification occurs. - * + * * The type of the notification could be learned by * QName type = notification.getNodeType(); - * + * * @param notification * Notification content */