DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT <http://issues.apache.org/bugzilla/show_bug.cgi?id=28660>. ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND INSERTED IN THE BUG DATABASE.
http://issues.apache.org/bugzilla/show_bug.cgi?id=28660 [Configuration] Lists in a CompositeConfiguration ------- Additional Comments From [EMAIL PROTECTED] 2004-04-29 09:18 ------- This I don't understand -- how can I specify whether conf1 overrides conf2 or whether it is additive? All is see in the online javadocs for CompositeConfiguration is the single "addConfiguration(Configuration config)" method, and there you cannot specify whether it should override or add; neither can you specify this in the constructor. If there was such an option, it would be great, but currently I don't know it... >From the documentation I understand that contained configurations are consulted in the order they were added, and the first match is returned (the first, not the last one, so newly added configs neither override nor add, but are only consulted as a fallback if previously configs don't contain this property). For getString etc. this work as expected because a result is returned as soon as a match is found. But getList is different -- it doesn't stop when a match is found but iterates over all configurations and adds the list elements from all of them -- you can easily check this by looking at the code. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
