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.impl;
10 import org.opendaylight.controller.sal.binding.api.NotificationListener;
11 import org.opendaylight.controller.sal.binding.api.NotificationService;
12 import org.opendaylight.yangtools.concepts.Registration;
13 import org.opendaylight.yangtools.yang.binding.Notification;
15 public class NotificationServiceImpl implements NotificationService {
17 public <T extends Notification> void addNotificationListener(Class<T> notificationType, NotificationListener<T> listener) {
22 public void addNotificationListener(org.opendaylight.yangtools.yang.binding.NotificationListener listener) {
27 public void removeNotificationListener(org.opendaylight.yangtools.yang.binding.NotificationListener listener) {
32 public <T extends Notification> void removeNotificationListener(Class<T> notificationType, NotificationListener<T> listener) {
37 public <T extends Notification> Registration<NotificationListener<T>> registerNotificationListener(Class<T> notificationType, NotificationListener<T> listener) {
38 //TODO implementation using sal-remote
43 public Registration<org.opendaylight.yangtools.yang.binding.NotificationListener> registerNotificationListener(org.opendaylight.yangtools.yang.binding.NotificationListener listener) {
44 //TODO implementation using sal-remote