diff options
Diffstat (limited to 'ecomp-sdk/epsdk-fw/src/main/java/org/onap/portalsdk/core/onboarding/util/KeyProperties.java')
-rw-r--r-- | ecomp-sdk/epsdk-fw/src/main/java/org/onap/portalsdk/core/onboarding/util/KeyProperties.java | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/ecomp-sdk/epsdk-fw/src/main/java/org/onap/portalsdk/core/onboarding/util/KeyProperties.java b/ecomp-sdk/epsdk-fw/src/main/java/org/onap/portalsdk/core/onboarding/util/KeyProperties.java index 6fa35372..28ada258 100644 --- a/ecomp-sdk/epsdk-fw/src/main/java/org/onap/portalsdk/core/onboarding/util/KeyProperties.java +++ b/ecomp-sdk/epsdk-fw/src/main/java/org/onap/portalsdk/core/onboarding/util/KeyProperties.java @@ -57,7 +57,7 @@ public class KeyProperties { private static final Log logger = LogFactory.getLog(KeyProperties.class); private static Properties properties; - private static String propertyFileName = "key.properties"; + public static final String PROPERTY_FILE_NAME = "key.properties"; private static final Object lockObject = new Object(); @@ -81,11 +81,11 @@ public class KeyProperties { 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; } } @@ -109,7 +109,7 @@ public class KeyProperties { private static boolean initialize() throws IOException { if (properties != null) return true; - InputStream in = KeyProperties.class.getClassLoader().getResourceAsStream(propertyFileName); + InputStream in = KeyProperties.class.getClassLoader().getResourceAsStream(PROPERTY_FILE_NAME); if (in == null) return false; properties = new Properties(); |