Return-Path: Delivered-To: apmail-jakarta-commons-dev-archive@www.apache.org Received: (qmail 79712 invoked from network); 1 Mar 2006 20:00:47 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 1 Mar 2006 20:00:47 -0000 Received: (qmail 54233 invoked by uid 500); 1 Mar 2006 20:01:31 -0000 Delivered-To: apmail-jakarta-commons-dev-archive@jakarta.apache.org Received: (qmail 54156 invoked by uid 500); 1 Mar 2006 20:01:31 -0000 Mailing-List: contact commons-dev-help@jakarta.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Help: List-Post: List-Id: "Jakarta Commons Developers List" Reply-To: "Jakarta Commons Developers List" Delivered-To: mailing list commons-dev@jakarta.apache.org Received: (qmail 54136 invoked by uid 99); 1 Mar 2006 20:01:31 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 01 Mar 2006 12:01:31 -0800 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests=UNPARSEABLE_RELAY X-Spam-Check-By: apache.org Received-SPF: pass (asf.osuosl.org: local policy) Received: from [194.25.134.83] (HELO mailout07.sul.t-online.com) (194.25.134.83) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 01 Mar 2006 12:01:30 -0800 Received: from fwd26.aul.t-online.de by mailout07.sul.t-online.com with smtp id 1FEXVV-0004cX-04; Wed, 01 Mar 2006 21:01:09 +0100 Received: from [192.168.0.1] (bHBCxwZrgeAUlaJDhzzb1BL0zjtToQISACTHY6EjAozY8DV08iOc4K@[84.174.108.104]) by fwd26.sul.t-online.de with esmtp id 1FEXVF-0mqefI0; Wed, 1 Mar 2006 21:00:53 +0100 Message-ID: <4405FD73.5030700@t-online.de> Date: Wed, 01 Mar 2006 21:00:51 +0100 From: Oliver Heger User-Agent: Mozilla Thunderbird 1.0.7 (Windows/20050923) X-Accept-Language: en-us, en MIME-Version: 1.0 To: Jakarta Commons Developers List Subject: Re: [configuration] Alternative ConfigurationFactory References: In-Reply-To: X-Enigmail-Version: 0.92.0.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit X-ID: bHBCxwZrgeAUlaJDhzzb1BL0zjtToQISACTHY6EjAozY8DV08iOc4K X-TOI-MSGID: b7012026-ad39-4f4b-bbe9-1525370def5e X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N J�rg Schaible wrote: >Hi Oliver, > > > >>-----Original Message----- >>From: Oliver Heger [mailto:oliver.heger@t-online.de] >>Sent: Sunday, February 26, 2006 8:25 PM >>To: Jakarta Commons Developer List >>Subject: [configuration] Alternative ConfigurationFactory >> >>I checked in an alternative configuration factory implementation named >>XMLConfigurationFactory. This class differs from >>ConfigurationFactory in >>the following points: >> >>- It does not depend on Commons Digester, but uses XMLConfiguration to >>parse the definition file. >> >>- By inheriting from XMLConfiguration it is itself a >>FileConfiguration, >>thus the definition file can be loaded from multiple sources. >> >>- It provides an easy mechanism of adding tags for custom >>configuration >>implementations to the definition file using so called >>ConfigurationProviders. >> >>- Complex initialization of the configuration sources to be loaded is >>supported. For instance, it is possible to set the reloading >>strategy of >>a file based configuration. >> >> > >This sounds great. > > > >>The implementations of these two factory classes are quite different, >>they have almost none code in common. So I am not sure what's the best >>way of dealing with this. We could >> >>- Merge both into a new ConfigurationFactory class. But if we want to >>keep binary compatibility (which we should IMO), the result will be a >>huge class with half of the code base being deprecated. >> >>- Let both classes coexist. This might confuse our users when >>they don't >>know which one to choose. >> >> > >Maybe a poll would be good to see if the users make usage of the different functionality (e.g. work with the digester rules or extend ConfigurationFactory). > > Hm, a poll on the mailing lists would be an option, but I doubt that we get a representive user base. > > >>- Deprecate ConfigurationFactory in favour of >>XMLConfigurationFactory. I >>guess that would be quite radical because ConfigurationFactory is >>certainly widely used. Besides there are a few features of >>ConfigurationFactory that the alternative does not support >>(overloading >>digester rules, namespace support). >> >>Opinions? Are there other options? >> >> > >Deprecation, but I would think over the name for the new factory. Something like ConfigurationBuilder would be also appropriate. Or you introduce ConfigurationBuilder as interface and have something like Configurations.getDefaultFactory(). > > I am not too content with the name XMLConfigurationFactory either. ConfigurationBuilder is fine, but there is a public inner class with this name in ConfigurationFactory, so this could be a conflict. How about ConfigurationLoader? Or ConfigurationCollector? >- J�rg > > > Oliver --------------------------------------------------------------------- To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org For additional commands, e-mail: commons-dev-help@jakarta.apache.org