2 * Copyright (c) 2013 Cisco Systems, Inc. and others. All rights reserved.
4 * This program and the accompanying materials are made available under the
5 * terms of the Eclipse Public License v1.0 which accompanies this distribution,
6 * and is available at http://www.eclipse.org/legal/epl-v10.html
8 package org.opendaylight.controller.sal.binding.api;
10 import org.opendaylight.controller.md.sal.common.api.notify.NotificationSubscriptionService;
11 import org.opendaylight.yangtools.concepts.Registration;
12 import org.opendaylight.yangtools.yang.binding.Notification;
14 public interface NotificationService extends BindingAwareService {
17 <T extends Notification> void addNotificationListener(Class<T> notificationType, NotificationListener<T> listener);
20 void addNotificationListener(org.opendaylight.yangtools.yang.binding.NotificationListener listener);
23 void removeNotificationListener(org.opendaylight.yangtools.yang.binding.NotificationListener listener);
26 <T extends Notification> void removeNotificationListener(Class<T> notificationType, NotificationListener<T> listener);
28 <T extends Notification> Registration<NotificationListener<T>> registerNotificationListener(
29 Class<T> notificationType, NotificationListener<T> listener);
32 Registration<org.opendaylight.yangtools.yang.binding.NotificationListener> registerNotificationListener(
33 org.opendaylight.yangtools.yang.binding.NotificationListener listener);