Refactor RendererServiceOperationsImpl notify 66/110266/6
authorJoakim Törnqvist <joakim.tornqvist@smartoptics.com>
Mon, 19 Feb 2024 11:35:54 +0000 (11:35 +0000)
committerJoakim Törnqvist <joakim.tornqvist@smartoptics.com>
Tue, 27 Feb 2024 15:29:13 +0000 (15:29 +0000)
commit31634068044299fbc4298df2a6e698024da71dff
tree77497fa4986ca012ee3ab2d94407372dcf6affde
parent154e86960b348bcd78c28a9c05e4fb626c4fab7d
Refactor RendererServiceOperationsImpl notify

Refactor three private methods in RendererServiceOperationsImpl
into a separate class implementing the interface 'Notification'
in package:

    org.opendaylight.transportpce.renderer.provisiondevice.notification

The constructor in RendererServiceOperationsImpl requires an instance
of 'Notification' instead of 'NotificationPublishService'. Meaning
RendererServiceOperationsImpl is using NotificationPublishService
indirectly as opposed to directly.

The rest of the changes is a ripple effect due to the constructor
being updated.

JIRA: TRNSPRTPCE-616
Change-Id: Ia7e45116d44581fe2a54dc0b58843840a007d5fb
Signed-off-by: Joakim Törnqvist <joakim.tornqvist@smartoptics.com>
lighty/src/main/java/io/lighty/controllers/tpce/module/TransportPCEImpl.java
renderer/src/main/java/org/opendaylight/transportpce/renderer/provisiondevice/RendererServiceOperationsImpl.java
renderer/src/main/java/org/opendaylight/transportpce/renderer/provisiondevice/notification/NotificationSender.java [new file with mode: 0644]
renderer/src/test/java/org/opendaylight/transportpce/renderer/provisiondevice/RendererServiceOperationsImplDeleteTest.java
renderer/src/test/java/org/opendaylight/transportpce/renderer/provisiondevice/RendererServiceOperationsImplTest.java