Return-Path: Delivered-To: apmail-cocoon-dev-archive@www.apache.org Received: (qmail 54582 invoked from network); 11 Mar 2005 22:03:57 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur-2.apache.org with SMTP; 11 Mar 2005 22:03:57 -0000 Received: (qmail 30459 invoked by uid 500); 11 Mar 2005 22:03:55 -0000 Delivered-To: apmail-cocoon-dev-archive@cocoon.apache.org Received: (qmail 30414 invoked by uid 500); 11 Mar 2005 22:03: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 Delivered-To: mailing list dev@cocoon.apache.org Received: (qmail 30400 invoked by uid 99); 11 Mar 2005 22:03:55 -0000 X-ASF-Spam-Status: No, hits=0.1 required=10.0 tests=FORGED_RCVD_HELO X-Spam-Check-By: apache.org Received-SPF: neutral (hermes.apache.org: local policy) Received: from 66.111.0.243.nyinternet.net (HELO confixx.bestiole.ch) (66.111.0.243) by apache.org (qpsmtpd/0.28) with ESMTP; Fri, 11 Mar 2005 14:03:54 -0800 Received: from [192.168.1.36] (lsn-boi-catv-c126-p138.vtx.ch [212.147.126.138]) by confixx.bestiole.ch (8.11.6/8.11.6) with ESMTP id j2BM3lH12279 for ; Fri, 11 Mar 2005 23:03:47 +0100 Mime-Version: 1.0 (Apple Message framework v619.2) In-Reply-To: <4231E764.9040300@apache.org> References: <4231E764.9040300@apache.org> Content-Type: multipart/signed; micalg=sha1; boundary=Apple-Mail-2--872556396; protocol="application/pkcs7-signature" Message-Id: <68eb4cb90c3ebcab3fc0e44c3cbf8e5d@apache.org> From: Bertrand Delacretaz Subject: Re: [RT] Another step to blocks: Application container support Date: Fri, 11 Mar 2005 23:03:49 +0100 To: dev@cocoon.apache.org X-Mailer: Apple Mail (2.619.2) X-Virus-Checked: Checked X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N --Apple-Mail-2--872556396 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=ISO-8859-1; format=flowed Le 11 mars 05, =E0 19:45, Carsten Ziegeler a =E9crit : > ...Now, I think we should help users in doing this. I'm currently=20 > thinking > about directly supporting DCC on the application level and therefore > creating support for an "application container" (We can later on > decide if we support both, or just one of them or a totally different=20= > one.).. IIUC the mechanism that you suggest would make it possible to support=20 new DCCs by creating some kind of adapter class for them? In this way=20 we could provide adapters for (say) Spring and Hivemind without closing=20= doors to other options. > ...b) Direct support for DCC. Using these frameworks is not that=20 > difficult > inside Cocoon, but I think it could be easier. > What do you think if e.g. a "getComponent("something")" in flow uses a > Spring BeanFactory (and if the factory does not have the = bean/component > then the usual Avalon mechanism is used). The same would happen if you > get a service manager from the Cocoon core... Does that mean "chaining" containers, asking them in turn until one of=20= them finds the component? If this is implemented at the sitemap level,=20= would we then get a chain like this to get a component? -Ask this sitemap's DCC for the component -If not found, ask this sitemap's service manager -if not found, ask the parent sitemap, which asks its DCC then its=20 service manager, and so on Just asking to check my understanding. > ...With these additions we get kind of a "sitemap controller" (or > whatever we call it): component configurations (xconf), DCC support, > class loading, listeners etc. This sitemap controller could become=20 > later > on the "block logic" or the block object/component... Sounds like a really good idea, especially with sitemap-level=20 classloader shielding. And making the sitemap the "control unit" fits=20 nicely with the existing structure, meaning an easier learning curve. Big +1 on the idea! -Bertrand --Apple-Mail-2--872556396 Content-Transfer-Encoding: base64 Content-Type: application/pkcs7-signature; name=smime.p7s Content-Disposition: attachment; filename=smime.p7s MIAGCSqGSIb3DQEHAqCAMIACAQExCzAJBgUrDgMCGgUAMIAGCSqGSIb3DQEHAQAAoIIGRTCCAv4w ggJnoAMCAQICAw0p3DANBgkqhkiG9w0BAQQFADBiMQswCQYDVQQGEwJaQTElMCMGA1UEChMcVGhh d3RlIENvbnN1bHRpbmcgKFB0eSkgTHRkLjEsMCoGA1UEAxMjVGhhd3RlIFBlcnNvbmFsIEZyZWVt YWlsIElzc3VpbmcgQ0EwHhcNMDQxMDA0MTQyMzU0WhcNMDUxMDA0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