X-Git-Url: https://git.opendaylight.org/gerrit/gitweb?p=controller.git;a=blobdiff_plain;f=opendaylight%2Fmd-sal%2Fsal-dom-api%2Fsrc%2Fmain%2Fjava%2Forg%2Fopendaylight%2Fcontroller%2Fsal%2Fcore%2Fapi%2Fnotify%2FNotificationListener.java;fp=opendaylight%2Fmd-sal%2Fsal-dom-api%2Fsrc%2Fmain%2Fjava%2Forg%2Fopendaylight%2Fcontroller%2Fsal%2Fcore%2Fapi%2Fnotify%2FNotificationListener.java;h=0000000000000000000000000000000000000000;hp=7dc8cb36c5b266c20f3521efc16e93ba3676553f;hb=e42f84e6d4567f36caad1c4162660bb32a473071;hpb=1e12c13aaec75493f70dd759208181f45c385102 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 deleted file mode 100644 index 7dc8cb36c5..0000000000 --- a/opendaylight/md-sal/sal-dom-api/src/main/java/org/opendaylight/controller/sal/core/api/notify/NotificationListener.java +++ /dev/null @@ -1,43 +0,0 @@ -/* - * Copyright (c) 2013 Cisco Systems, Inc. and others. All rights reserved. - * - * This program and the accompanying materials are made available under the - * terms of the Eclipse Public License v1.0 which accompanies this distribution, - * and is available at http://www.eclipse.org/legal/epl-v10.html - */ -package org.opendaylight.controller.sal.core.api.notify; - -import java.util.EventListener; -import java.util.Set; - -import org.opendaylight.controller.sal.core.api.Consumer; -import org.opendaylight.yangtools.yang.common.QName; -import org.opendaylight.yangtools.yang.data.api.CompositeNode; - - -/** - * Notification listener for SAL notifications. - */ -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 - */ - void onNotification(CompositeNode notification); -}