X-Git-Url: https://gerrit.onap.org/r/gitweb?a=blobdiff_plain;f=nokiav2%2Fdriver%2Fsrc%2Fmain%2Fjava%2Forg%2Fonap%2Fvfc%2Fnfvo%2Fdriver%2Fvnfm%2Fsvnfm%2Fnokia%2Futil%2FSystemFunctions.java;h=87a4d56dbdc163e33610f78e07018de99eb77bd5;hb=a995e82e01a3315940051ca55133c9cb14eccc6b;hp=0bb630395bdf9b94728f84f8b60ea3da588947df;hpb=f6228e56abb06a36212216bc5674e69e6c0d9610;p=vfc%2Fnfvo%2Fdriver%2Fvnfm%2Fsvnfm.git diff --git a/nokiav2/driver/src/main/java/org/onap/vfc/nfvo/driver/vnfm/svnfm/nokia/util/SystemFunctions.java b/nokiav2/driver/src/main/java/org/onap/vfc/nfvo/driver/vnfm/svnfm/nokia/util/SystemFunctions.java index 0bb63039..87a4d56d 100644 --- a/nokiav2/driver/src/main/java/org/onap/vfc/nfvo/driver/vnfm/svnfm/nokia/util/SystemFunctions.java +++ b/nokiav2/driver/src/main/java/org/onap/vfc/nfvo/driver/vnfm/svnfm/nokia/util/SystemFunctions.java @@ -16,11 +16,11 @@ package org.onap.vfc.nfvo.driver.vnfm.svnfm.nokia.util; import com.google.common.io.ByteStreams; -import org.apache.http.impl.client.CloseableHttpClient; -import org.apache.http.impl.client.HttpClients; - import java.io.InputStream; import java.io.PrintStream; +import org.apache.http.impl.client.CloseableHttpClient; +import org.apache.http.impl.client.HttpClients; +import org.springframework.boot.SpringApplication; /** * Wrapper class for static method calls to core or core libraries. @@ -68,7 +68,7 @@ public class SystemFunctions { * operating system and may be larger. For example, many * operating systems measure time in units of tens of * milliseconds. - *

+ * *

See the description of the class Date for * a discussion of slight discrepancies that may arise between * Unable to load /unittests/missing * "computer time" and coordinated universal time (UTC). @@ -162,4 +162,11 @@ public class SystemFunctions { return HttpClients.createDefault(); } + /** + * @param clazz the main source of the Spring application + * @return a new Spring application + */ + public SpringApplication newSpringApplication(Class clazz){ + return new SpringApplication(clazz); + } } \ No newline at end of file