Return-Path: Delivered-To: apmail-commons-dev-archive@www.apache.org Received: (qmail 40509 invoked from network); 13 Dec 2008 15:28:51 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 13 Dec 2008 15:28:51 -0000 Received: (qmail 83452 invoked by uid 500); 13 Dec 2008 15:29:04 -0000 Delivered-To: apmail-commons-dev-archive@commons.apache.org Received: (qmail 82955 invoked by uid 500); 13 Dec 2008 15:29:02 -0000 Mailing-List: contact dev-help@commons.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: "Commons Developers List" Delivered-To: mailing list dev@commons.apache.org Received: (qmail 82944 invoked by uid 99); 13 Dec 2008 15:29:02 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 13 Dec 2008 07:29:02 -0800 X-ASF-Spam-Status: No, hits=1.2 required=10.0 tests=SPF_HELO_PASS,SPF_NEUTRAL X-Spam-Check-By: apache.org Received-SPF: neutral (athena.apache.org: local policy) Received: from [212.227.126.188] (HELO moutng.kundenserver.de) (212.227.126.188) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 13 Dec 2008 15:28:41 +0000 Received: from [192.168.178.20] (p5B09B0B2.dip0.t-ipconnect.de [91.9.176.178]) by mrelayeu.kundenserver.de (node=mrelayeu8) with ESMTP (Nemesis) id 0ML31I-1LBWPh0tXB-000202; Sat, 13 Dec 2008 16:28:17 +0100 Message-ID: <4943D486.4010807@oliver-heger.de> Date: Sat, 13 Dec 2008 16:28:06 +0100 From: Oliver Heger User-Agent: Thunderbird 2.0.0.18 (Windows/20081105) MIME-Version: 1.0 To: Commons Developers List Subject: Re: [Configuration] HierarchicalConfiguration in configuration2 References: <491A52A5.5080306@dslextreme.com> <491B44F6.6070002@oliver-heger.de> <491BDDA1.1080907@dslextreme.com> <491C986A.9040403@oliver-heger.de> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Provags-ID: V01U2FsdGVkX1/gtpVJVYOWFpp+e3PYA6WVa36kdVv+oLDvUHo uPH1wyiTOd4TrgIDxW07ZXN+YLapaVYKo5Rr4yh/S1x3puOYjF eT7cAei5en3gn6NJeI4wg== X-Virus-Checked: Checked by ClamAV on apache.org Ralph Goers schrieb: > > On Nov 13, 2008, at 1:13 PM, Oliver Heger wrote: > >> Ralph Goers schrieb: >>> The problem is that in applications using commons config they would >>> like to specify an interface in lots of places. >>> HierarchicalConfiguration would be perfect for that. It should just >>> extend the Configuration interface. >> >> It was discussed that in configuration2 all configurations are >> hierarchical. In this case there would be the single Configuration >> interface, but it would offer the enhanced functionality which is now >> provided by HierarchicalConfiguration. >> > > Now I'm really confused. If this is true then why is there a "flat" > package and why do things like the MapConfiguration extend from it? I'm > not sure how you intend to resolve this. > > Ralph > There are of course configurations like MapConfiguration that are not hierarchical by nature. The classes in the "flat" package provide a hierarchical view on these classes. The idea is that when a hierarchical node structure is needed, it is constructed on the fly resulting in a root node and all properties stored in the configuration as child nodes. (So there is only a single layer hierarchy.) But this is also experimental. I am not sure whether this is the way to go or whether these configurations should be transformed into true hierarchical configurations as is done by the ConfigurationUtils.convertToHierarchical() method. Oliver --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscribe@commons.apache.org For additional commands, e-mail: dev-help@commons.apache.org