Merge "Generic REST client for external services"
authorOfir Sonsino <os0695@intl.att.com>
Thu, 23 Aug 2018 11:31:48 +0000 (11:31 +0000)
committerGerrit Code Review <gerrit@onap.org>
Thu, 23 Aug 2018 11:31:48 +0000 (11:31 +0000)
vid-app-common/src/main/java/org/onap/vid/controllers/WebConfig.java
vid-app-common/src/main/java/org/onap/vid/scheduler/SchedulerRestInterface.java

index 98c0c38..cf32e92 100644 (file)
@@ -30,6 +30,8 @@ import org.onap.vid.asdc.parser.ToscaParserImpl2;
 import org.onap.vid.asdc.rest.RestfulAsdcClient;
 import org.onap.vid.exceptions.GenericUncheckedException;
 import org.onap.vid.properties.AsdcClientConfiguration;
+import org.onap.vid.scheduler.SchedulerRestInterface;
+import org.onap.vid.scheduler.SchedulerRestInterfaceIfc;
 import org.onap.vid.services.*;
 import org.springframework.beans.factory.annotation.Qualifier;
 import org.springframework.context.annotation.Bean;
@@ -162,4 +164,9 @@ public class WebConfig {
     public PombaClientInterface getVerifyServiceInstanceClientInterface() {
         return new PombaClientImpl();
     }
+
+    @Bean
+    public SchedulerRestInterfaceIfc getSchedulerRestInterface(){
+        return new SchedulerRestInterface();
+    }
 }
index 9a7522b..d66ed49 100644 (file)
@@ -37,7 +37,6 @@ public class SchedulerRestInterface implements SchedulerRestInterfaceIfc {
     private static EELFLoggerDelegate logger = EELFLoggerDelegate.getLogger(SchedulerRestInterface.class);
     final private static EELFLogger outgoingRequestsLogger = Logging.getRequestsLogger("scheduler");
 
-    @Autowired
     public SchedulerRestInterface(){
         this.propertyGetter = SystemProperties::getProperty;
     }