About Us Home Contributors License Components Sandbox Configuration Home Overview Simple Howto ConfigurationFactory Howto XML Howto Composite Config Howto Runtime Dependencies Roadmap Javadoc Extensions Avalon Component Project Documentation About Commons Configuration Downloads Project Info Project Reports Development Process General Information Charter Volunteering Contributing Patches Releasing Components Jakarta Community Get Involved Mailing Lists Access CVS Repositories Commons Resources (Unofficial) Wiki Japanese Translation Korean Translation Related Apache Commons DB Commons XML Commons | ### Intro Commons Configuration provides a generic configuration interface which enables an application to read configuration data from a variety of sources. Commons Configuration provides typed access to single, and multi-valued configuration parameters as demonstrated by the following code:
     Double double = Configuration.getDouble("some_double_value");
Configuration parameters may be loaded from the following sources: Properties files XML documents JNDI JDBC Datasource Different configuration sources can be mixed using a `ConfigurationFactory` and `CompositeConfiguration`. Additional sources of configuration parameters can be created by using custom configuration objects. This customization can be achieved by extending `AbstractConfiguration`. The full Configuration API is available here . ### Latest Release The latest release of Apache Jakarta Commons Configuration is available from here . It is also available from IBiblio . The Changes Report explains all of the changes and bug fixes that have been made. ### History Commons Configuration started as code in Apache JServ. The JServ code was subsequently added to Jakarta Turbine . After Jakarta Turbine, this configuration interface moved to Jakarta Velocity and underwent various improvements. After Velocity, this code was introduced to the Jakarta Commons as `ExtendedProperties`. Configuration began life in the Commons as a Sandbox component, and was promoted to the Commons Proper in late 2003.