"; */ ?>

jakarta.apache.org commons configuration

Apache released version 1.4 of the Jakarta Commons configuration library!

A very useful library that unifies the way all the configuration parameters are handled and lead to much more clear layout in especially big projects with a lot of packages, components and frameworks.

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


Configuration parameters may be loaded from the following sources:

  • Properties files
  • XML documents
  • Property list files (.plist)
  • JNDI
  • JDBC Datasource
  • System properties
  • Applet parameters
  • Servlet parameters

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 Abstract Configuration or AbstractFileConfiguration.

The full Javadoc API documentation is available here.