diff options
Diffstat (limited to 'vid-app-common/src/main/java/org/onap/vid/controller/MsoConfig.java')
-rw-r--r-- | vid-app-common/src/main/java/org/onap/vid/controller/MsoConfig.java | 15 |
1 files changed, 12 insertions, 3 deletions
diff --git a/vid-app-common/src/main/java/org/onap/vid/controller/MsoConfig.java b/vid-app-common/src/main/java/org/onap/vid/controller/MsoConfig.java index 20cf6f038..5b05caa7a 100644 --- a/vid-app-common/src/main/java/org/onap/vid/controller/MsoConfig.java +++ b/vid-app-common/src/main/java/org/onap/vid/controller/MsoConfig.java @@ -33,6 +33,7 @@ import org.onap.vid.mso.MsoProperties; import org.onap.vid.mso.rest.MsoRestClientNew; import org.onap.vid.services.CloudOwnerService; import org.onap.vid.services.CloudOwnerServiceImpl; +import org.onap.vid.utils.Logging; import org.onap.vid.utils.SystemPropertiesWrapper; import org.springframework.context.annotation.Bean; import org.springframework.context.annotation.Configuration; @@ -48,10 +49,18 @@ public class MsoConfig { } @Bean - public MsoRestClientNew msoClient(ObjectMapper unirestObjectMapper, HttpsAuthClient httpsAuthClient, SystemPropertiesWrapper systemPropertiesWrapper){ + public MsoRestClientNew msoClient(ObjectMapper unirestObjectMapper, + HttpsAuthClient httpsAuthClient, + SystemPropertiesWrapper systemPropertiesWrapper, + Logging loggingService){ // Satisfy both interfaces -- MsoInterface and RestMsoImplementation - return new MsoRestClientNew(new SyncRestClient(unirestObjectMapper), SystemProperties.getProperty( - MsoProperties.MSO_SERVER_URL),httpsAuthClient, systemPropertiesWrapper); + return new MsoRestClientNew( + new SyncRestClient(unirestObjectMapper, loggingService), + SystemProperties.getProperty(MsoProperties.MSO_SERVER_URL), + httpsAuthClient, + systemPropertiesWrapper, + loggingService + ); } |