Uploaded image for project: 'transportpce'
  1. transportpce
  2. TRNSPRTPCE-756

Don't use NotificationListener in TRANSPORTPCE components

    XMLWordPrintable

Details

    • Task
    • Status: Resolved
    • Medium
    • Resolution: Done
    • None
    • PotassiumSR2
    • None

    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));

      Attachments

        Issue Links

          No reviews matched the request. Check your Options in the drop-down menu of this sections header.

          Activity

            People

              matej.sramcik Matej Šramčík
              rkashapov Ruslan Kashapov
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: