2 * Copyright (c) 2015 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.md.sal.binding.compat;
10 import org.opendaylight.controller.md.sal.binding.api.NotificationService;
11 import org.opendaylight.yangtools.concepts.ListenerRegistration;
12 import org.opendaylight.yangtools.yang.binding.Notification;
13 import org.opendaylight.yangtools.yang.binding.NotificationListener;
15 @Deprecated(forRemoval = true)
16 public class HeliumNotificationServiceAdapter
17 implements org.opendaylight.controller.sal.binding.api.NotificationService, AutoCloseable {
19 private final NotificationService notificationService;
21 public HeliumNotificationServiceAdapter(NotificationService notificationService) {
22 this.notificationService = notificationService;
26 public <T extends Notification> ListenerRegistration<
27 org.opendaylight.controller.sal.binding.api.NotificationListener<T>> registerNotificationListener(
28 final Class<T> notificationType,
29 final org.opendaylight.controller.sal.binding.api.NotificationListener<T> listener) {
30 throw new UnsupportedOperationException("Not supported type of listener.");
34 public ListenerRegistration<NotificationListener> registerNotificationListener(
35 final NotificationListener listener) {
36 return notificationService.registerNotificationListener(listener);
40 public void close() throws Exception {