commons-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Oliver Heger <>
Subject Re: [configuration]
Date Fri, 10 Dec 2010 20:11:39 GMT
Hi Lautaro,

Am 10.12.2010 13:26, schrieb Lautaro Brasseur:
> I'm trying to use the CompositeConfiguration class:
> but I didn't found the method a=dDefaults referenced in that page. Is there any
> replacement?
> Thanks in advance.
> Lautaro

this example is wrong. The last line should run

When asked for a property CompositeConfiguration searches all contained 
configuration objects in the order they were added. The first value 
found is returned. So you can achieve a defaults mechanism by simply 
adding the configuration with the default values as the last 
configuration: it is then queried if no other configuration object 
contains the property in question.


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

View raw message