summaryrefslogtreecommitdiffstats
path: root/auth/auth-core/src
diff options
context:
space:
mode:
Diffstat (limited to 'auth/auth-core/src')
-rw-r--r--auth/auth-core/src/main/java/org/onap/aaf/auth/common/Define.java8
1 files changed, 7 insertions, 1 deletions
diff --git a/auth/auth-core/src/main/java/org/onap/aaf/auth/common/Define.java b/auth/auth-core/src/main/java/org/onap/aaf/auth/common/Define.java
index 1e7a0530..ce0033cc 100644
--- a/auth/auth-core/src/main/java/org/onap/aaf/auth/common/Define.java
+++ b/auth/auth-core/src/main/java/org/onap/aaf/auth/common/Define.java
@@ -31,6 +31,7 @@ import org.onap.aaf.cadi.config.Config;
public class Define {
private static String ROOT_NS = null;
private static String ROOT_COMPANY = null;
+ private static boolean initialized = false;
private final static String MSG = ".set(Access access) must be called before use";
public static final CharSequence ROOT_NS_TAG = "AAF_NS"; // use for certain Replacements in Location
@@ -67,7 +68,8 @@ public class Define {
access.getProperties().setProperty(es.getKey().toString(),varReplace(es.getValue().toString()));
}
}
-
+
+ initialized = true;
access.printf(Level.INIT,"AAF Root NS is %s, and AAF Company Root is %s",ROOT_NS,ROOT_COMPANY);
}
@@ -78,5 +80,9 @@ public class Define {
return potential;
}
}
+
+ public static boolean isInitialized() {
+ return initialized;
+ }
}