summaryrefslogtreecommitdiffstats
path: root/bpmn/MSOCommonBPMN/src
diff options
context:
space:
mode:
authorBenjamin, Max (mb388a) <mb388a@att.com>2021-02-02 10:49:25 -0500
committerBenjamin, Max (mb388a) <mb388a@att.com>2021-02-02 11:19:28 -0500
commit4911cb8b20e4247d3ae9b06e2914142d9df3397e (patch)
tree0d04e53f156aa995d3398f212eaf5c087491d211 /bpmn/MSOCommonBPMN/src
parentc3d638ca04b502c5005812452e2417cd3219cbae (diff)
corrected static class usage when reading
corrected static class usage when reading properties Issue-ID: SO-3511 Signed-off-by: Benjamin, Max (mb388a) <mb388a@att.com> Change-Id: I78b65f5227af6dc238079695407100f4a1b6f841
Diffstat (limited to 'bpmn/MSOCommonBPMN/src')
-rw-r--r--bpmn/MSOCommonBPMN/src/main/java/org/onap/so/client/restproperties/AAIPropertiesImpl.java10
1 files changed, 4 insertions, 6 deletions
diff --git a/bpmn/MSOCommonBPMN/src/main/java/org/onap/so/client/restproperties/AAIPropertiesImpl.java b/bpmn/MSOCommonBPMN/src/main/java/org/onap/so/client/restproperties/AAIPropertiesImpl.java
index b6227aae16..2e0ec3f154 100644
--- a/bpmn/MSOCommonBPMN/src/main/java/org/onap/so/client/restproperties/AAIPropertiesImpl.java
+++ b/bpmn/MSOCommonBPMN/src/main/java/org/onap/so/client/restproperties/AAIPropertiesImpl.java
@@ -39,8 +39,6 @@ public class AAIPropertiesImpl implements AAIProperties {
public static final String AAI_ENABLE_CACHING = "aai.caching.enable";
public static final String AAI_CACHE_MAX_AGE = "aai.caching.maxAge";
- private UrnPropertiesReader reader;
-
@Override
public URL getEndpoint() throws MalformedURLException {
return new URL(UrnPropertiesReader.getVariable(AAI_ENDPOINT));
@@ -68,17 +66,17 @@ public class AAIPropertiesImpl implements AAIProperties {
@Override
public Long getReadTimeout() {
- return Long.valueOf(reader.getVariable(AAI_READ_TIMEOUT, "60000"));
+ return Long.valueOf(UrnPropertiesReader.getVariable(AAI_READ_TIMEOUT, "60000"));
}
@Override
public Long getConnectionTimeout() {
- return Long.valueOf(reader.getVariable(AAI_CONNECTION_TIMEOUT, "60000"));
+ return Long.valueOf(UrnPropertiesReader.getVariable(AAI_CONNECTION_TIMEOUT, "60000"));
}
@Override
public boolean isCachingEnabled() {
- return Boolean.parseBoolean(reader.getVariable(AAI_ENABLE_CACHING, "false"));
+ return Boolean.parseBoolean(UrnPropertiesReader.getVariable(AAI_ENABLE_CACHING, "false"));
}
@Override
@@ -86,7 +84,7 @@ public class AAIPropertiesImpl implements AAIProperties {
return new AAICacheProperties() {
@Override
public Long getMaxAge() {
- return Long.valueOf(reader.getVariable(AAI_CACHE_MAX_AGE, "60000"));
+ return Long.valueOf(UrnPropertiesReader.getVariable(AAI_CACHE_MAX_AGE, "60000"));
}
};
}