commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 38075] - [configuration] add new config.subsets() method to return multiple SubsetConfigurationS
Date Thu, 19 Jan 2006 20:35:16 GMT
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=38075>.
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=38075





------- Additional Comments From oliver.heger@t-online.de  2006-01-19 21:35 -------
Yes, this sounds reasonable.

When working on the refactoring of the internal node structures used by
HierarchicalConfiguration I had the idea of a different Configuration class,
which is very similar to SubsetConfiguration, but more light weight.

The subset() method in HierarchicalConfiguration as it is implemented ATM is not
really efficient because it involves copying of whole sub trees. For the special
case that the subset contains only a single node (which would be the case for
this use case: a list of subset configurations, each of which represents one
configuration node), a specialized SubnodeConfiguration could be used. This
class would wrap a (sub) node of a parent configuration and would perform all of
its operations directly on this node and its children. So manipulations at the
SubnodeConfiguration or its parent would directly be visible to each other.

I will do some experiments with this idea. But whatever the outcome is, this
feature request in any case makes sense.

-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

---------------------------------------------------------------------
To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-dev-help@jakarta.apache.org


Mime
View raw message