- <T extends Notification> void addNotificationListener(Class<T> notificationType, NotificationListener<T> listener);
-
- <T extends Notification> void removeNotificationListener(Class<T> notificationType, NotificationListener<T> listener);
+ /**
+ * Register a listener which implements generated notification interfaces derived from
+ * {@link org.opendaylight.yangtools.yang.binding.NotificationListener}.
+ * Listener is registered for all notifications present in implemented interfaces.
+ *
+ * @param listener
+ * @return Registration for listener. To unregister listener invoke {@link ListenerRegistration#close()} method.
+ */
+ ListenerRegistration<org.opendaylight.yangtools.yang.binding.NotificationListener> registerNotificationListener(
+ org.opendaylight.yangtools.yang.binding.NotificationListener listener);