import org.opendaylight.yangtools.concepts.AbstractListenerRegistration;
import org.opendaylight.yangtools.concepts.ListenerRegistration;
import org.opendaylight.yangtools.concepts.Registration;
+import org.opendaylight.yangtools.yang.binding.DataObject;
import org.opendaylight.yangtools.yang.binding.Notification;
import org.opendaylight.yangtools.yang.binding.NotificationListener;
}
@Override
- public <N extends Notification> Registration registerListener(final Class<N> type, final Listener<N> listener,
- final Executor executor) {
+ public <N extends Notification<N> & DataObject> Registration registerListener(final Class<N> type,
+ final Listener<N> listener, final Executor executor) {
final var domListener = new SingleBindingDOMNotificationAdapter<>(adapterContext, type, listener, executor);
return domNotifService.registerNotificationListener(domListener, domListener.getSupportedNotifications());
}