summaryrefslogtreecommitdiffstats
path: root/ecomp-sdk/epsdk-fw/src/main/java/org/onap/portalsdk/core/onboarding/util/PortalApiProperties.java
diff options
context:
space:
mode:
Diffstat (limited to 'ecomp-sdk/epsdk-fw/src/main/java/org/onap/portalsdk/core/onboarding/util/PortalApiProperties.java')
-rw-r--r--ecomp-sdk/epsdk-fw/src/main/java/org/onap/portalsdk/core/onboarding/util/PortalApiProperties.java8
1 files changed, 4 insertions, 4 deletions
diff --git a/ecomp-sdk/epsdk-fw/src/main/java/org/onap/portalsdk/core/onboarding/util/PortalApiProperties.java b/ecomp-sdk/epsdk-fw/src/main/java/org/onap/portalsdk/core/onboarding/util/PortalApiProperties.java
index aba57e44..501d35ca 100644
--- a/ecomp-sdk/epsdk-fw/src/main/java/org/onap/portalsdk/core/onboarding/util/PortalApiProperties.java
+++ b/ecomp-sdk/epsdk-fw/src/main/java/org/onap/portalsdk/core/onboarding/util/PortalApiProperties.java
@@ -58,7 +58,7 @@ public class PortalApiProperties {
private static final Log logger = LogFactory.getLog(PortalApiProperties.class);
private static Properties properties;
- private static String propertyFileName = "portal.properties";
+ public static final String PROPERTY_FILE_NAME = "portal.properties";
private static final Object lockObject = new Object();
@@ -82,11 +82,11 @@ public class PortalApiProperties {
synchronized (lockObject) {
try {
if (!initialize()) {
- logger.error("Failed to read property file " + propertyFileName);
+ logger.error("Failed to read property file " + PROPERTY_FILE_NAME);
return null;
}
} catch (IOException e) {
- logger.error("Failed to read property file " + propertyFileName, e);
+ logger.error("Failed to read property file " + PROPERTY_FILE_NAME, e);
return null;
}
}
@@ -110,7 +110,7 @@ public class PortalApiProperties {
public static boolean initialize() throws IOException {
if (properties != null)
return true;
- InputStream in = PortalApiProperties.class.getClassLoader().getResourceAsStream(propertyFileName);
+ InputStream in = PortalApiProperties.class.getClassLoader().getResourceAsStream(PROPERTY_FILE_NAME);
if (in == null)
return false;
properties = new Properties();