Example #1
0
 private void initForDefaultConfig() {
   JSONObject json = loadFromConfig(DEFAULT_CONFIG_FILE);
   if (json == null) {
     throw new IllegalStateException("There is no " + SITE_CONFIG_FILE);
   }
   applyConfig(json, false);
 }
Example #2
0
  private void initSiteConfig() {
    JSONObject json = loadFromConfig(SITE_CONFIG_FILE);

    // if there is no storage-site.json file, nothing happen.
    if (json != null) {
      applyConfig(json, true);
    }
  }