diff options
author | puthuparambil.aditya <aditya.puthuparambil@bell.ca> | 2021-10-19 12:06:57 +0100 |
---|---|---|
committer | puthuparambil.aditya <aditya.puthuparambil@bell.ca> | 2021-10-19 12:06:57 +0100 |
commit | d5bc2ef86b68ba6e8fdc8cf808e9cc0065ce2ae2 (patch) | |
tree | 00b545ed7ec6302fd8af4be00a8fd85dae077bd5 /cps-service/src | |
parent | 46de0fbcdd71324353cf9adf824060a57bc5d642 (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.java | 4 |
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; } |