Example usage for org.apache.commons.configuration2 ConfigurationUtils copy

List of usage examples for org.apache.commons.configuration2 ConfigurationUtils copy

Introduction

In this page you can find the example usage for org.apache.commons.configuration2 ConfigurationUtils copy.

Prototype

public static void copy(final Configuration source, final Configuration target) 

Source Link

Document

Copy all properties from the source configuration to the target configuration.

Usage

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
}