Example usage for org.apache.commons.configuration XMLPropertiesConfiguration XMLPropertiesConfiguration

List of usage examples for org.apache.commons.configuration XMLPropertiesConfiguration XMLPropertiesConfiguration

Introduction

In this page you can find the example usage for org.apache.commons.configuration XMLPropertiesConfiguration XMLPropertiesConfiguration.

Prototype

public XMLPropertiesConfiguration(URL url) throws ConfigurationException 

Source Link

Document

Creates and loads the xml properties from the specified URL.

Usage

From source file:AIR.Common.Configuration.ConfigurationSection.java

public ConfigurationSection updateProperties(URL url) throws ConfigurationException {
    XMLPropertiesConfiguration config = new XMLPropertiesConfiguration(url);
    Iterator<String> key_iterator = config.getKeys();
    while (key_iterator.hasNext()) {
        String key = key_iterator.next();
        this.put(key, config.getString(key));
    }//from w  ww .  ja  v a  2 s .com
    return this;
}