static ConfigObject mergeConfigObjects(ConfigObject lowPriorityCO, ConfigObject highPriorityCO) { if(lowPriorityCO != null){ return highPriorityCO != null ? (ConfigObject) lowPriorityCO.merge(highPriorityCO) : lowPriorityCO; } return highPriorityCO; }
/** * merge two config objects. If both of config objects contian the same * property key, then the value of <code>highPriorityCO</code> is propagated * to the result. * @param lowPriorityCO * @param highPriorityCO * @return the merged version of two config objects. */ static ConfigObject mergeConfigObjects(ConfigObject lowPriorityCO, ConfigObject highPriorityCO) { return (ConfigObject) lowPriorityCO.merge(highPriorityCO); }
static ConfigObject mergeConfigObjects(ConfigObject lowPriorityCO, ConfigObject highPriorityCO) { if(lowPriorityCO != null){ return highPriorityCO != null ? (ConfigObject) lowPriorityCO.merge(highPriorityCO) : lowPriorityCO; } return highPriorityCO; }
/** * merge two config objects. If both of config objects contian the same * property key, then the value of <code>highPriorityCO</code> is propagated * to the result. * @param lowPriorityCO * @param highPriorityCO * @return the merged version of two config objects. */ static ConfigObject mergeConfigObjects(ConfigObject lowPriorityCO, ConfigObject highPriorityCO) { return (ConfigObject) lowPriorityCO.merge(highPriorityCO); }
static ConfigObject mergeConfigObjects(ConfigObject lowPriorityCO, ConfigObject highPriorityCO) { if(lowPriorityCO != null){ return highPriorityCO != null ? (ConfigObject) lowPriorityCO.merge(highPriorityCO) : lowPriorityCO; } return highPriorityCO; }
/** * merge two config objects. If both of config objects contian the same * property key, then the value of <code>highPriorityCO</code> is propagated * to the result. * * @param lowPriorityCO * @param highPriorityCO * @return the merged version of two config objects. */ static ConfigObject mergeConfigObjects(ConfigObject lowPriorityCO, ConfigObject highPriorityCO) { return (ConfigObject) lowPriorityCO.merge(highPriorityCO); }
ConfigObject flatConfigObject = new ConfigObject(); configObject.flatten(flatConfigObject); flatConfigObject.merge(configObject); propertySources.addFirst(new ConfigObjectPropertySource(DATASTORE_CONFIG + i, configObject)); propertySources.addFirst(new ConfigObjectPropertySource(DATASTORE_CONFIG_FLAT + i, createFlatConfig(flatConfigObject)));