+/**
+ * Interface for a notification service that provides publish/subscribe capabilities for YANG
+ * modeled notifications. This interface is a combination of the {@link NotificationService} and
+ * {@link NotificationPublishService} interfaces.
+ *
+ * @deprecated Please use {@link org.opendaylight.controller.md.sal.binding.api.NotificationPublishService}.
+ */
+@Deprecated
+public interface NotificationProviderService extends NotificationService, NotificationPublishService<Notification> {
+
+ /**
+ * {@inheritDoc}
+ */
+ @Override
+ void publish(Notification notification);
+
+ /**
+ * {@inheritDoc}
+ */
+ @Override
+ void publish(Notification notification, ExecutorService executor);
+
+ /**
+ * Registers a listener to be notified about notification subscriptions. This
+ * enables a component to know when there is a notification listener subscribed
+ * for a particular notification type.
+ * <p>
+ * On registration of this listener, the
+ * {@link NotificationInterestListener#onNotificationSubscribtion(Class)} method
+ * will be invoked for every notification type that currently has a notification listener
+ * subscribed.
+ *
+ * @param interestListener the listener that will be notified when subscriptions
+ * for new notification types occur.
+ * @return a {@link ListenerRegistration} instance that should be used to unregister the listener
+ * by invoking the {@link ListenerRegistration#close()} method when no longer needed.
+ */
+ ListenerRegistration<NotificationInterestListener> registerInterestListener(
+ NotificationInterestListener interestListener);
+
+ /**
+ * Interface for a listener interested in being notified about notification subscriptions.
+ */
+ interface NotificationInterestListener extends EventListener {