diff options
author | liamfallon <liam.fallon@ericsson.com> | 2018-08-03 16:12:01 +0100 |
---|---|---|
committer | liamfallon <liam.fallon@ericsson.com> | 2018-08-03 21:26:42 +0100 |
commit | efdaa0d840ed5289bda63ea15d76d8a5446c1746 (patch) | |
tree | 27bc3d9f8c21e8feb1710b8866833ea3e521539e /services/services-engine/src/main | |
parent | 0f0f41071ae3c6c7896c7770b0139c9c40866330 (diff) |
Use common components in apex
Common ResourceUtil class replaces specific one in APEX
Managed dependency version clashes removed in POMs
Dependency versions with security vulnerabilities changed for
zookeeper
kafka
infinispan
Change-Id: I3c4b367cb5556b2dc255ab62c84f85738165eb81
Issue-ID: POLICY-954
Signed-off-by: liamfallon <liam.fallon@ericsson.com>
Diffstat (limited to 'services/services-engine/src/main')
3 files changed, 5 insertions, 5 deletions
diff --git a/services/services-engine/src/main/java/org/onap/policy/apex/service/engine/event/impl/filecarrierplugin/FILECarrierTechnologyParameters.java b/services/services-engine/src/main/java/org/onap/policy/apex/service/engine/event/impl/filecarrierplugin/FILECarrierTechnologyParameters.java index f7f25cb9e..0081312fe 100644 --- a/services/services-engine/src/main/java/org/onap/policy/apex/service/engine/event/impl/filecarrierplugin/FILECarrierTechnologyParameters.java +++ b/services/services-engine/src/main/java/org/onap/policy/apex/service/engine/event/impl/filecarrierplugin/FILECarrierTechnologyParameters.java @@ -20,10 +20,10 @@ package org.onap.policy.apex.service.engine.event.impl.filecarrierplugin; -import org.onap.policy.apex.model.utilities.ResourceUtils; import org.onap.policy.apex.service.engine.event.impl.filecarrierplugin.consumer.ApexFileEventConsumer; import org.onap.policy.apex.service.engine.event.impl.filecarrierplugin.producer.ApexFileEventProducer; import org.onap.policy.apex.service.parameters.carriertechnology.CarrierTechnologyParameters; +import org.onap.policy.common.utils.resources.ResourceUtils; /** * This class holds the parameters that allows transport of events into and out of Apex using files diff --git a/services/services-engine/src/main/java/org/onap/policy/apex/service/engine/main/ApexCommandLineArguments.java b/services/services-engine/src/main/java/org/onap/policy/apex/service/engine/main/ApexCommandLineArguments.java index 02dc248b4..374b38482 100644 --- a/services/services-engine/src/main/java/org/onap/policy/apex/service/engine/main/ApexCommandLineArguments.java +++ b/services/services-engine/src/main/java/org/onap/policy/apex/service/engine/main/ApexCommandLineArguments.java @@ -34,7 +34,7 @@ import org.apache.commons.cli.Options; import org.apache.commons.cli.ParseException; import org.onap.policy.apex.model.basicmodel.concepts.ApexException; import org.onap.policy.apex.model.basicmodel.concepts.ApexRuntimeException; -import org.onap.policy.apex.model.utilities.ResourceUtils; +import org.onap.policy.common.utils.resources.ResourceUtils; /** * This class reads and handles command line parameters for the Apex main program. @@ -266,7 +266,7 @@ public class ApexCommandLineArguments { } // The file name can refer to a resource on the local file system or on the class path - final URL fileURL = ResourceUtils.getURL4Resource(fileName); + final URL fileURL = ResourceUtils.getUrl4Resource(fileName); if (fileURL == null) { throw new ApexException(fileTag + " file \"" + fileName + "\" does not exist"); } diff --git a/services/services-engine/src/main/java/org/onap/policy/apex/service/parameters/engineservice/EngineServiceParameters.java b/services/services-engine/src/main/java/org/onap/policy/apex/service/parameters/engineservice/EngineServiceParameters.java index 6b60732c3..1db7aeb2d 100644 --- a/services/services-engine/src/main/java/org/onap/policy/apex/service/parameters/engineservice/EngineServiceParameters.java +++ b/services/services-engine/src/main/java/org/onap/policy/apex/service/parameters/engineservice/EngineServiceParameters.java @@ -26,8 +26,8 @@ import java.net.URL; import org.onap.policy.apex.model.basicmodel.concepts.AxArtifactKey; import org.onap.policy.apex.model.basicmodel.service.AbstractParameters; import org.onap.policy.apex.model.basicmodel.service.ParameterService; -import org.onap.policy.apex.model.utilities.ResourceUtils; import org.onap.policy.apex.service.parameters.ApexParameterValidator; +import org.onap.policy.common.utils.resources.ResourceUtils; import org.onap.policy.apex.core.engine.EngineParameters; @@ -305,7 +305,7 @@ public class EngineServiceParameters extends AbstractParameters implements ApexP } else { // The file name can refer to a resource on the local file system or on the class // path - final URL fileURL = ResourceUtils.getURL4Resource(policyModelFileName); + final URL fileURL = ResourceUtils.getUrl4Resource(policyModelFileName); if (fileURL == null) { errorMessageBuilder.append( " policyModelFileName [" + policyModelFileName + "] not found or is not a plain file\n"); |