1 package org.opendaylight.controller.sal.dom.broker.osgi;
3 import org.opendaylight.controller.sal.core.api.notify.NotificationListener;
4 import org.opendaylight.controller.sal.core.api.notify.NotificationPublishService;
5 import org.opendaylight.yangtools.concepts.Registration;
6 import org.opendaylight.yangtools.yang.common.QName;
7 import org.opendaylight.yangtools.yang.data.api.CompositeNode;
8 import org.osgi.framework.ServiceReference;
10 public class NotificationPublishServiceProxy extends AbstractBrokerServiceProxy<NotificationPublishService> implements NotificationPublishService {
12 public NotificationPublishServiceProxy(ServiceReference<NotificationPublishService> ref,
13 NotificationPublishService delegate) {
17 public void sendNotification(CompositeNode notification) {
18 getDelegate().sendNotification(notification);
21 public Registration<NotificationListener> addNotificationListener(QName notification, NotificationListener listener) {
22 return addRegistration(getDelegate().addNotificationListener(notification, listener));
26 public void publish(CompositeNode notification) {
27 getDelegate().publish(notification);