public static void setProperty(String key, Object value) { // ensure have instance DynamicPropertyFactory.getInstance(); ConcurrentCompositeConfiguration config = (ConcurrentCompositeConfiguration) DynamicPropertyFactory .getBackingConfigurationSource(); config.getConfiguration(0).addProperty(key, value); }
ConcurrentCompositeConfiguration composite = (ConcurrentCompositeConfiguration) current; for (String name: composite.getConfigurationNames()) { map.put(name, composite.getConfiguration(name));
DynamicURLConfiguration defaultFileConfig = (DynamicURLConfiguration) defaultConfig.getConfiguration(URL_CONFIG_NAME); if (defaultFileConfig != null) { defaultFileConfig.stopLoading();
ConcurrentCompositeConfiguration composite = (ConcurrentCompositeConfiguration) current; for (String name: composite.getConfigurationNames()) { map.put(name, composite.getConfiguration(name));
DynamicURLConfiguration defaultFileConfig = (DynamicURLConfiguration) defaultConfig.getConfiguration(URL_CONFIG_NAME); if (defaultFileConfig != null) { defaultFileConfig.stopLoading();
/** * Removes the configuration with the specified name. * * @param name the name of the configuration to be removed * @return the removed configuration (<b>null</b> if this configuration * was not found) */ public Configuration removeConfiguration(String name) { Configuration conf = getConfiguration(name); if (conf != null && !conf.equals(containerConfiguration)) { configList.remove(conf); namedConfigurations.remove(name); } else if (conf != null && conf.equals(containerConfiguration)) { throw new IllegalArgumentException("Can't remove container configuration"); } return conf; } /**
/** * Removes the configuration with the specified name. * * @param name the name of the configuration to be removed * @return the removed configuration (<b>null</b> if this configuration * was not found) */ public Configuration removeConfiguration(String name) { Configuration conf = getConfiguration(name); if (conf != null && !conf.equals(containerConfiguration)) { configList.remove(conf); namedConfigurations.remove(name); } else if (conf != null && conf.equals(containerConfiguration)) { throw new IllegalArgumentException("Can't remove container configuration"); } return conf; } /**
public static void setProperty(String key, Object value) { // ensure have instance DynamicPropertyFactory.getInstance(); ConcurrentCompositeConfiguration config = (ConcurrentCompositeConfiguration) DynamicPropertyFactory .getBackingConfigurationSource(); config.getConfiguration(0).addProperty(key, value); }