Java News from Monday, April 9, 2007

The Apache Jakarta Project has released Commons Configuration 1.4, a Java class library that

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 = config.getDouble("number");
Integer integer = config.getInteger("number");

Configuration parameters may be loaded from the following sources:

Different configuration sources can be mixed using a ConfigurationFactory and a CompositeConfiguration. Additional sources of configuration parameters can be created by using custom configuration objects. This customization can be achieved by extending AbstractConfiguration or AbstractFileConfiguration.

According to Olive Heger, "This release contains numerous bug fixes, but also adds some new features like improved interpolation support, a new configuration class for windows ini files, or a new reloading strategy that can be triggered using JMX. All changes are source and binary compatible with the previous release (1.3)."