Return-Path: Delivered-To: apmail-jakarta-commons-dev-archive@www.apache.org Received: (qmail 57356 invoked from network); 7 Dec 2004 11:58:00 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur-2.apache.org with SMTP; 7 Dec 2004 11:58:00 -0000 Received: (qmail 29841 invoked by uid 500); 7 Dec 2004 11:57:51 -0000 Delivered-To: apmail-jakarta-commons-dev-archive@jakarta.apache.org Received: (qmail 29753 invoked by uid 500); 7 Dec 2004 11:57:49 -0000 Mailing-List: contact commons-dev-help@jakarta.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Subscribe: 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 29667 invoked by uid 99); 7 Dec 2004 11:57:46 -0000 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_HELO_PASS X-Spam-Check-By: apache.org Received-SPF: neutral (hermes.apache.org: local policy) Received: from relay-av.club-internet.fr (HELO relay-av.club-internet.fr) (194.158.96.107) by apache.org (qpsmtpd/0.28) with ESMTP; Tue, 07 Dec 2004 03:57:46 -0800 Received: from [127.0.0.1] (lfjr.club-internet.fr [194.117.194.68]) by relay-av.club-internet.fr (Postfix) with ESMTP id 7551225628 for ; Tue, 7 Dec 2004 12:57:35 +0100 (CET) Message-ID: <41B59B61.9020800@lfjr.net> Date: Tue, 07 Dec 2004 13:00:33 +0100 From: Emmanuel Bourg User-Agent: Mozilla Thunderbird 1.0RC1 (Windows/20041201) X-Accept-Language: en-us, en MIME-Version: 1.0 To: Jakarta Commons Developers List Subject: Re: [CONFIGURATION] ClassPropertiesConfiguration References: <41B593D8.3040708@lfjr.net> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N Henning P. Schmiedehausen wrote: > I don't think, this is overengineered. Are you sure about URL locate? > I'd probably go for InputStream locate(). Is that for classloaders that do no support getRessource ? We really need to know where the file is located in order to reload it efficiently. > Hm. I probably would like this solution better than the current (which > reminds me of the way that commons-logging tries to find its log > APIs). We could use current as the default and make the others > pluggable. (and add a few C'tors which accept a Locator object) We could either keep the current constructors and use the Locator directly : new PropertiesConfiguration(locator.locate("config.properties)); or add one constructor : new PropertiesConfiguration("config.properties", locator); in this case we'll also need another load method : config.load("config.properties", locator); I think I prefer starting with the first solution. Emmanuel Bourg --------------------------------------------------------------------- To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org For additional commands, e-mail: commons-dev-help@jakarta.apache.org