commons-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Borut Bolčina <>
Subject [Configuration] Wish list
Date Thu, 26 Jan 2006 08:21:24 GMT

I've been using Commons Configuration successfully in several projects. 
Besides XPath support I have 3 more feature wishes:

*[1] Getting Properties out of Configuration*
When using already written software components, some methods take 
Properties as input parameter. If using CompositeConfiguration as a 
central point for accesing properties, it would be desirable to get 
Properties out of PropertiesConfiguration which is part of 
CompositeConfiguration. Example of wanted functionality:

Configuration propertiesConfiguration = config.getConfiguration(2);
Properties properties = propertiesConfiguration.getProperties();

Asume 3rd entry in configuration.xml is <properties>.

*[2] Inclusion of DatabaseConfiguration in configuration.xml*
It woould be nice to introduce something like <database> tag in 
configuration.xml. The content of the tag would be connection string for 
the database. Example:

<?xml version="1.0" encoding="ISO-8859-1" ?>
  <xml fileName="prop1.xml"/>
  <xml fileName="prop2.xml"/>
  <properties fileName=""/>

*[3] Getting configurations out of configuration.xml could be done by 
name and not by index.*
So, instead of
one could write

A new attribute for each entry should be introduced, something like:
  <xml id="entryOne" fileName="prop1.xml"/>
  <xml id="entryTwo" fileName="prop2.xml"/>
  <properties id="entryThree" fileName=""/>
  <database id="entryFour" 

What do you think?

Borut Bolčina

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message