Return-Path: Delivered-To: apmail-cocoon-dev-archive@www.apache.org Received: (qmail 48647 invoked from network); 6 Nov 2006 20:32:47 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 6 Nov 2006 20:32:46 -0000 Received: (qmail 74598 invoked by uid 500); 6 Nov 2006 20:32:55 -0000 Delivered-To: apmail-cocoon-dev-archive@cocoon.apache.org Received: (qmail 74534 invoked by uid 500); 6 Nov 2006 20:32:55 -0000 Mailing-List: contact dev-help@cocoon.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: List-Post: Reply-To: dev@cocoon.apache.org List-Id: Delivered-To: mailing list dev@cocoon.apache.org Received: (qmail 74522 invoked by uid 99); 6 Nov 2006 20:32:55 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 06 Nov 2006 12:32:55 -0800 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received-SPF: neutral (herse.apache.org: local policy) Received: from [62.2.95.247] (HELO smtp.hispeed.ch) (62.2.95.247) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 06 Nov 2006 12:32:40 -0800 Received: from pati.ch (80-219-16-137.dclient.hispeed.ch [80.219.16.137]) by smtp.hispeed.ch (8.12.11.20060308/8.12.6/taifun-1.0) with ESMTP id kA6KWIwi014507 (version=TLSv1/SSLv3 cipher=EDH-RSA-DES-CBC3-SHA bits=168 verify=FAIL) for ; Mon, 6 Nov 2006 21:32:18 +0100 Received: (qmail 27093 invoked from network); 6 Nov 2006 21:32:16 +0100 Received: from 10.20.30.1 by simba (envelope-from , uid 201) with qmail-scanner-2.01st (clamdscan: 0.88.5/2163. perlscan: 2.01st. Clear:RC:1(10.20.30.1):. Processed in 0.03627 secs); 06 Nov 2006 20:32:16 -0000 Received: from simba.pati.ch (HELO ?127.0.0.1?) (10.20.30.1) by simba.pati.ch with SMTP; 6 Nov 2006 21:32:16 +0100 Message-ID: <454F9BCE.7010805@apache.org> Date: Mon, 06 Nov 2006 21:32:14 +0100 From: Giacomo Pati Organization: Apache Software Foundation User-Agent: Thunderbird 1.5.0.7 (X11/20060909) MIME-Version: 1.0 To: dev@cocoon.apache.org Subject: Re: Restructuring directory structure[was [Vote] Block artifact directory structure] References: <45470272.1030905@apache.org> <4549ABBE.2000601@apache.org> <454BB06A.5040400@apache.org> <454BC985.30705@apache.org> <454BCBDB.8000807@apache.org> <454C8223.2040301@mobilebox.pl> <454C918F.8070504@apache.org> <454C9738.1070801@mobilebox.pl> <454CA68F.2050505@apache.org> <454CB2F5.6060107@mobilebox.pl> <454CC197.8080701@apache.org> <454F05F7.2070003@otego.com> <454F07DE.3020906@mobilebox.pl> <454F0E5A.1050701@mobilebox.pl> <454F3985.7030207@otego.com> <454F436B.6040808@mobilebox.pl> <454F4965.5060405@apache.org> <454F4B5D.2080706@apache.org> <454F4BF5.60309@mobilebox.pl> <454F4D9D.1060808@apache.org> <454F939E.1010403@apache.org> <454F9716.5030606@mobilebox.pl> In-Reply-To: <454F9716.5030606@mobilebox.pl> X-Enigmail-Version: 0.94.1.0 Content-Type: text/plain; charset=ISO-8859-15 Content-Transfer-Encoding: 7bit X-Virus-Scanned: ClamAV version 0.88.5, clamav-milter version 0.88.5 on smtp-05.tornado.cablecom.ch X-Virus-Status: Clean X-DCC-spamcheck-01.tornado.cablecom.ch-Metrics: smtp-05.tornado.cablecom.ch 1377; Body=1 Fuz1=1 Fuz2=1 X-Virus-Checked: Checked by ClamAV on apache.org -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Leszek Gawron wrote: > Giacomo Pati wrote: >> -----BEGIN PGP SIGNED MESSAGE----- >> Hash: SHA1 >> >> >> >> Carsten Ziegeler wrote: >>> Leszek Gawron wrote: >>>> Carsten Ziegeler wrote: >>>>> Sorry, I got totally lost in all these mails. As far as I >>>>> understand we >>>>> are currently discussing when/where it's possible to set the >>>>> running mode. >>>>> There are two places: applicationContext.xml and system property. The >>>>> system property takes precedence over the applicationContext.xml. I'm >>>>> not sure which role cocoon.xconf should play in this? >>>> I think everyone means applicationContext.xml. I happend to put the >>>> wrong name in the first place. >>>> >>> :) OK, fine, so is there still a problem? >> >> Actually, yes, the problem is still there. If I understand Leszek >> correctly, we do have to places in code where we examine the running >> mode with the same algorithm. > > I actually have two problems: > > 1. IMO cocoon components should either use Settings.getRunningMode() to > get the current running mode or have the mode injected. Allowing > components to determine the running mode using any algorithm (even the > easiest one) leads to inconsistencies. I do absolutely agree with you. > 2. Some components (like CocoonOverridePropertyConfigurer, which has > already been fixed) use the Settings object but happily fallback to > default mode when settings object is not available. The result of such > situation is that a bean that has been incorrectly dependence injected > uses other running mode than you might think. Beans using running mode. > should simply throw if they cannot determine one. As Carsten pointed out in a recent mail, we do not have the "original working code" yet in the repo (dunno where it has been gone, nor which ever class he had in mind as "original working code"). Maybe we should just restore it and see whether that fix our problems > I am probably picky about this but hey - you're the ones I've learnt my > values from :) Sure, it's easy to have someone to blame for it ;-) Ciao - -- Giacomo Pati Otego AG, Switzerland - http://www.otego.com Orixo, the XML business alliance - http://www.orixo.com -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.5 (GNU/Linux) iD4DBQFFT5vOLNdJvZjjVZARApFSAJUWHDjGtaxdiTWATKdplOp2vy99AJsEwPYV LNMscahUH0/+UUGFtpWiTA== =NIFB -----END PGP SIGNATURE-----