Junits for Mapper
[aaf/authz.git] / auth / auth-core / src / main / java / org / onap / aaf / auth / common / Define.java
index 1e7a053..ce0033c 100644 (file)
@@ -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;
+       }
        
 }