Exemplo n.º 1
0
 /**
  * Return a static reference to this instance. If the instance has not been instantiated, call the
  * boostrap:
  *
  * <ul>
  *   <li>Load from fortress.properties
  *   <li>Load some overrides from System properties
  *   <li>Load from ou=Config ldap node
  * </ul>
  *
  * @return this
  */
 public static Config getInstance() {
   if (sINSTANCE == null) {
     synchronized (Config.class) {
       if (sINSTANCE == null) {
         sINSTANCE = new Config();
         if (!sINSTANCE.isRemoteConfigLoaded()) {
           sINSTANCE.loadRemoteConfig();
         }
       }
     }
   }
   return sINSTANCE;
 }