List of usage examples for org.apache.commons.configuration2 ConfigurationUtils copy
public static void copy(final Configuration source, final Configuration target)
Copy all properties from the source configuration to the target configuration.
From source file:org.eclipse.winery.repository.configuration.Environment.java
public static void copyConfiguration(Configuration configuration) { ConfigurationUtils.copy(configuration, CONFIGURATION); URL_CONFIGURATION.update(configuration); }
From source file:org.mitre.mpf.wfm.util.MpfPropertiesConfigurationBuilder.java
private void updateConfigurationSnapshot() { PropertiesConfiguration tmpConfig = new PropertiesConfiguration(); // this will copy over each property one at a time, // essentially generating a "flat" config from the composite config ConfigurationUtils.copy(mpfCompositeConfig, tmpConfig); mpfConfigSnapshot = tmpConfig;//w ww .j a v a2 s. c om }