[TRNSPRTPCE-756] Don't use NotificationListener in TRANSPORTPCE components Created: 06/Sep/23  Updated: 25/Jan/24  Resolved: 25/Jan/24

Status: Resolved
Project: transportpce
Component/s: None
Affects Version/s: None
Fix Version/s: PotassiumSR2

Type: Task Priority: Medium
Reporter: Ruslan Kashapov Assignee: Matej Šramčík
Resolution: Done Votes: 0
Labels: pick-next, 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:

./transportpce/dmaap-client/src/main/java/org/opendaylight/transportpce/dmaap/client/impl/DmaapClientProvider.java:        listenerRegistration = notificationService.registerNotificationListener(
./transportpce/dmaap-client/src/test/java/org/opendaylight/transportpce/dmaap/client/impl/DmaapClientProviderTest.java:            .registerNotificationListener(Mockito.any(NbiNotificationsListenerImpl.class));
./transportpce/networkmodel/src/main/java/org/opendaylight/transportpce/networkmodel/NetworkModelProvider.java:        serviceHandlerListenerRegistration = notificationService.registerNotificationListener(serviceHandlerListner);
./transportpce/networkmodel/src/main/java/org/opendaylight/transportpce/networkmodel/dto/NodeRegistration.java:        listeners.add(notificationService.registerNotificationListener(alarmListener));
./transportpce/networkmodel/src/main/java/org/opendaylight/transportpce/networkmodel/dto/NodeRegistration.java:        listeners.add(notificationService.registerNotificationListener(deOperationsListener));
./transportpce/networkmodel/src/main/java/org/opendaylight/transportpce/networkmodel/dto/NodeRegistration.java:        listeners.add(notificationService.registerNotificationListener(deviceListener));
./transportpce/networkmodel/src/main/java/org/opendaylight/transportpce/networkmodel/dto/NodeRegistration.java:        listeners.add(notificationService.registerNotificationListener(tcaListener));
./transportpce/networkmodel/src/main/java/org/opendaylight/transportpce/networkmodel/dto/NodeRegistration.java:        listeners.add(notificationService.registerNotificationListener(alarmListener));
./transportpce/networkmodel/src/main/java/org/opendaylight/transportpce/networkmodel/dto/NodeRegistration.java:        listeners.add(notificationService.registerNotificationListener(deOperationsListener));
./transportpce/networkmodel/src/main/java/org/opendaylight/transportpce/networkmodel/dto/NodeRegistration.java:        listeners.add(notificationService.registerNotificationListener(deviceListener));
./transportpce/networkmodel/src/main/java/org/opendaylight/transportpce/networkmodel/dto/NodeRegistration.java:        listeners.add(notificationService.registerNotificationListener(tcaListener));
./transportpce/networkmodel/src/main/java/org/opendaylight/transportpce/networkmodel/dto/NodeRegistration.java:        listeners.add(notificationService.registerNotificationListener(alarmListener));
./transportpce/networkmodel/src/main/java/org/opendaylight/transportpce/networkmodel/dto/NodeRegistration.java:        listeners.add(notificationService.registerNotificationListener(deOperationsListener));
./transportpce/networkmodel/src/main/java/org/opendaylight/transportpce/networkmodel/dto/NodeRegistration.java:        listeners.add(notificationService.registerNotificationListener(deviceListener));
./transportpce/networkmodel/src/main/java/org/opendaylight/transportpce/networkmodel/dto/NodeRegistration.java:        listeners.add(notificationService.registerNotificationListener(tcaListener));
./transportpce/servicehandler/src/main/java/org/opendaylight/transportpce/servicehandler/impl/ServicehandlerProvider.java:        pcelistenerRegistration = notificationService.registerNotificationListener(pceListenerImpl);
./transportpce/servicehandler/src/main/java/org/opendaylight/transportpce/servicehandler/impl/ServicehandlerProvider.java:        rendererlistenerRegistration = notificationService.registerNotificationListener(rendererListenerImpl);
./transportpce/servicehandler/src/main/java/org/opendaylight/transportpce/servicehandler/impl/ServicehandlerProvider.java:        networkmodellistenerRegistration = notificationService.registerNotificationListener(networkModelListenerImpl);
./transportpce/tapi/src/main/java/org/opendaylight/transportpce/tapi/impl/TapiProvider.java:        pcelistenerRegistration = notificationService.registerNotificationListener(pceListenerImpl);
./transportpce/tapi/src/main/java/org/opendaylight/transportpce/tapi/impl/TapiProvider.java:        rendererlistenerRegistration = notificationService.registerNotificationListener(rendererListenerImpl);
./transportpce/tapi/src/main/java/org/opendaylight/transportpce/tapi/impl/TapiProvider.java:            .registerNotificationListener(serviceHandlerListenerImpl);
./transportpce/tapi/src/main/java/org/opendaylight/transportpce/tapi/impl/TapiProvider.java:            .registerNotificationListener(tapiNetworkModelListenerImpl);
./transportpce/nbinotifications/src/main/java/org/opendaylight/transportpce/nbinotifications/impl/NbiNotificationsProvider.java:        listenerRegistration = notificationService.registerNotificationListener(nbiNotificationsListener);
./transportpce/nbinotifications/src/test/java/org/opendaylight/transportpce/nbinotifications/impl/NbiNotificationsProviderTest.java:                .registerNotificationListener(any(NbiNotificationsListenerImpl.class));


 Comments   
Comment by methla@outlook.cz [ 02/Oct/23 ]

Pak začnu já na někoho útočit asi

Generated at Wed Feb 07 20:44:00 UTC 2024 using Jira 8.20.10#820010-sha1:ace47f9899e9ee25d7157d59aa17ab06aee30d3d.