summaryrefslogtreecommitdiffstats
path: root/cps-service/src
diff options
context:
space:
mode:
authorputhuparambil.aditya <aditya.puthuparambil@bell.ca>2021-10-19 12:06:57 +0100
committerputhuparambil.aditya <aditya.puthuparambil@bell.ca>2021-10-19 12:06:57 +0100
commitd5bc2ef86b68ba6e8fdc8cf808e9cc0065ce2ae2 (patch)
tree00b545ed7ec6302fd8af4be00a8fd85dae077bd5 /cps-service/src
parent46de0fbcdd71324353cf9adf824060a57bc5d642 (diff)
Fixing ciruclar dependency issue
Issue-ID: CPS-738 Signed-off-by: puthuparambil.aditya <aditya.puthuparambil@bell.ca> Change-Id: I74a0aefb477d36ba2320332fd82e91cf8324bd84
Diffstat (limited to 'cps-service/src')
-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;
}