All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.chronos.common.configuration.ChronosConfiguration Maven / Gradle / Ivy

package org.chronos.common.configuration;

import java.util.Map;

import org.apache.commons.configuration.Configuration;

/**
 * This is the basic interface for all configuration classes in Chronos.
 *
 * 

* The primary purpose of this interface (aside from acting as a base class) is to offer methods that convert the * configuration into a variety of output formats, such as an Apache Commons {@link Configuration} object. * * @author [email protected] -- Initial Contribution and API * */ public interface ChronosConfiguration { /** * Converts the contents of this configuration into an Apache Commons {@link Configuration} object. * *

* The returned object will receive a copy of the internal values, therefore any modifications to the returned * configuration will have no impact on the internal state, and vice versa. * * @return The Apache Commons Configuration object. May be empty, but never null. */ public Configuration asCommonsConfiguration(); /** * Converts the contents of this configuration into a regular java.util.{@link Map}. * *

* The returned map will receive a copy of the internal values, therefore any modifications to the returned map will * have no impact on the internal state, and vice versa. * * @return This configuration, converted into a regular map. May be empty, but never null. */ public Map asMap(); }





© 2015 - 2025 Weber Informatics LLC | Privacy Policy