summaryrefslogtreecommitdiffstats
path: root/cps-service
diff options
context:
space:
mode:
authorputhuparambil.aditya <aditya.puthuparambil@bell.ca>2021-10-19 12:06:57 +0100
committerBruno Sakoto <bruno.sakoto@bell.ca>2022-02-03 17:52:49 -0500
commit353b8e235c18d9a813ef8d022852a9f424adb4d4 (patch)
tree96501dd25d3bc9ee018a4c4dce41b1b263a7655b /cps-service
parentc2a98631112128093d4f601284bb30928539f242 (diff)
Fixing ciruclar dependency issuemr/873/126886/5
Issue-ID: CPS-738 Issue-ID: CPS-873 Signed-off-by: puthuparambil.aditya <aditya.puthuparambil@bell.ca> Signed-off-by: Bruno Sakoto <bruno.sakoto@bell.ca> Change-Id: I74a0aefb477d36ba2320332fd82e91cf8324bd84 (cherry picked from commit d5bc2ef86b68ba6e8fdc8cf808e9cc0065ce2ae2)
Diffstat (limited to 'cps-service')
-rw-r--r--cps-service/src/main/java/org/onap/cps/notification/CpsDataUpdatedEventFactory.java4
1 files changed, 3 insertions, 1 deletions
diff --git a/cps-service/src/main/java/org/onap/cps/notification/CpsDataUpdatedEventFactory.java b/cps-service/src/main/java/org/onap/cps/notification/CpsDataUpdatedEventFactory.java
index 85e5abab0d..2985ed53bb 100644
--- a/cps-service/src/main/java/org/onap/cps/notification/CpsDataUpdatedEventFactory.java
+++ b/cps-service/src/main/java/org/onap/cps/notification/CpsDataUpdatedEventFactory.java
@@ -34,6 +34,7 @@ import org.onap.cps.spi.FetchDescendantsOption;
import org.onap.cps.spi.model.Anchor;
import org.onap.cps.spi.model.DataNode;
import org.onap.cps.utils.DataMapUtils;
+import org.springframework.context.annotation.Lazy;
import org.springframework.stereotype.Component;
@Component
@@ -58,7 +59,8 @@ public class CpsDataUpdatedEventFactory {
private final CpsDataService cpsDataService;
private final CpsAdminService cpsAdminService;
- public CpsDataUpdatedEventFactory(final CpsDataService cpsDataService, final CpsAdminService cpsAdminService) {
+ public CpsDataUpdatedEventFactory(@Lazy final CpsDataService cpsDataService,
+ final CpsAdminService cpsAdminService) {
this.cpsDataService = cpsDataService;
this.cpsAdminService = cpsAdminService;
}