Return-Path: Delivered-To: apmail-cocoon-dev-archive@www.apache.org Received: (qmail 2137 invoked from network); 16 May 2006 09:42:40 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 16 May 2006 09:42:40 -0000 Received: (qmail 17243 invoked by uid 500); 16 May 2006 09:42:40 -0000 Delivered-To: apmail-cocoon-dev-archive@cocoon.apache.org Received: (qmail 16727 invoked by uid 500); 16 May 2006 09:42:38 -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 16716 invoked by uid 99); 16 May 2006 09:42:38 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 16 May 2006 02:42:38 -0700 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received-SPF: pass (asf.osuosl.org: local policy includes SPF record at spf.trusted-forwarder.org) Received: from [217.12.11.63] (HELO smtp009.mail.ukl.yahoo.com) (217.12.11.63) by apache.org (qpsmtpd/0.29) with SMTP; Tue, 16 May 2006 02:42:36 -0700 Received: (qmail 97242 invoked from network); 16 May 2006 09:42:15 -0000 Received: from unknown (HELO ?89.144.220.221?) (reinhard?poetz@89.144.220.221 with plain) by smtp009.mail.ukl.yahoo.com with SMTP; 16 May 2006 09:42:14 -0000 Message-ID: <44699E75.9030300@apache.org> Date: Tue, 16 May 2006 11:42:13 +0200 From: Reinhard Poetz User-Agent: Mozilla Thunderbird 1.0.7 (Windows/20050923) X-Accept-Language: en-us, en MIME-Version: 1.0 To: dev@cocoon.apache.org Subject: Re: [2.2] Configuration issues References: <44696FFD.4030900@apache.org> <44699558.3060604@apache.org> <446998B8.2040107@apache.org> In-Reply-To: <446998B8.2040107@apache.org> Content-Type: text/plain; charset=ISO-8859-15; format=flowed Content-Transfer-Encoding: 8bit X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N Carsten Ziegeler wrote: > Reinhard Poetz wrote: >>Do you want to solve this for our first release? If we add the "beta" postfix, >>adding some solution in the future isn't a problem. If you agree, I would like >>to postpone the discussion for the time after first beta release. > > I personally would like to have this in the first beta release, so we > can see if this is the right solution and eventually change this in the > next beta :) I would like to have a first beta release in May. If we're fast enough, I don't have a problem. I just wanted to say that finding a solution isn't a must. >>@ your question: You probably don't like my answer but OSGi already solves this >>kind of problem for us. Considering this I would only go for a very simple >>solution so that user _can_ provide their own configuration files which are used >>_instead_ of a block's configuration. For the usual needs (forms, template, >>mail, apples, pdf block) this should be enough. Don't know about the portal >>which is probably the use case you're thinking of. > > The portal is no problem as you have your own config file anyway. I'm > more thinking of core or some blocks were you just add your own > components or override some, like adding your own validator to cforms > (which is no problem) or overriding the default email validator with > your own one (which is a problem). > > How does OSGi solve this? Since OSGi4 declarative services are supported. Think of Spring dependency injection but considering interface/implementation relations. You can use the OSGi configuratonAdmin service to change an injected component or a component's properties. Additionally we have the possibility to redisgn e.g. forms and portal to use the OSGi whiteboard pattern[1]. Using it makes extending them very simple as it makes extensions very simple - you just have to provide a component that implements a particular interface and it is automatically added as reference to another component. [1] http://www.osgi.org/documents/osgi_technology/whiteboard.pdf -- Reinhard P�tz Independent Consultant, Trainer & (IT)-Coach {Software Engineering, Open Source, Web Applications, Apache Cocoon} web(log): http://www.poetz.cc -------------------------------------------------------------------- ___________________________________________________________ Telefonate ohne weitere Kosten vom PC zum PC: http://messenger.yahoo.de