summaryrefslogtreecommitdiffstats
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-08 19:31:42 +0000
commit3063d68680ccbfdb8dd379a6e62600d3754eb9a7 (patch)
tree228499bca85aa130aa56ab001320810789304ceb
parent88d2299942d40442a63c7b39f443a654542bccac (diff)
Fixing ciruclar dependency issue
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)
-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;
}