Hello,
I'm trying to configure in my Spring context a commons-configuration "CompositeConfiguration".
I can setup a simple Configuration instance using :
I'd like to setup a CompositeConfiguration (that merges multiple Configuration instances) but it requires to call "addConfiguration(config)" for every configuration instance to set in the composite. I don't know how to do this using IoC syntax (perhaps it's out of scope).Code:<bean id="aSimpleConfig" class="org.apache.commons.configuration.PropertiesConfiguration" init-method="load"> <property name="URL"> <value>classpath:/org/springframework/context/support/messages.properties</value> </property> </bean>
Has someone used compositeConfiguration with Spring ? Should I ask commons-configuration developers to add a "setConfigList(List)" to the compositeConfiguration class to be useable in a IoC context ?
Nico.


Reply With Quote