[CONTROLLER-2087] Don't use NotificationListener in CONTROLLER components Created: 06/Sep/23  Updated: 18/Jan/24  Resolved: 18/Jan/24

Status: Resolved
Project: controller
Component/s: None
Affects Version/s: None
Fix Version/s: 9.0.0

Type: Task Priority: Medium
Reporter: Ruslan Kashapov Assignee: Matej Šramčík
Resolution: Done Votes: 0
Labels: pt
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Blocks
blocks MDSAL-497 Remove support for listening on gener... Resolved

 Description   

Usage of generated interfaces extending org.opendaylight.yangtools.yang.binding.NotificationListener interface was deprecated for removal via MDSAL-496.

In order to eliminate dependency on deprecated interface the affected logic require update to use org.opendaylight.mdsal.binding.api.NotificationService.Listener instead.

Affected components:

./controller/benchmark/ntfbenchmark/src/main/java/ntfbenchmark/impl/NtfbenchmarkProvider.java:            listeners.add(listenService.registerNotificationListener(listener));
./controller/opendaylight/blueprint/src/main/java/org/opendaylight/controller/blueprint/ext/NotificationListenerBean.java:        registration = notificationService.registerNotificationListener(notificationListener);
./controller/opendaylight/md-sal/samples/clustering-test-app/provider/src/main/java/org/opendaylight/controller/clustering/it/provider/MdsalLowLevelTestProvider.java:                notificationService.registerNotificationListener(new YnlListener(input.getId())));
./controller/opendaylight/md-sal/samples/clustering-test-app/provider/src/main/java/org/opendaylight/controller/clustering/it/listener/PeopleCarListener.java:        reg = notifService.registerNotificationListener(this);
./controller/opendaylight/md-sal/samples/toaster-consumer/src/main/java/org/opendaylight/controller/sample/kitchen/impl/KitchenServiceImpl.java:        reg = notifService.registerNotificationListener(this);
./controller/opendaylight/md-sal/sal-binding-it/src/test/java/org/opendaylight/controller/test/sal/binding/it/NotificationIT.java:                notificationService.registerNotificationListener(listener1);
./controller/opendaylight/md-sal/sal-binding-it/src/test/java/org/opendaylight/controller/test/sal/binding/it/NotificationIT.java:                notificationService.registerNotificationListener(listener2);

Generated at Wed Feb 07 19:57:10 UTC 2024 using Jira 8.20.10#820010-sha1:ace47f9899e9ee25d7157d59aa17ab06aee30d3d.