Return-Path: Delivered-To: apmail-cocoon-dev-archive@www.apache.org Received: (qmail 14568 invoked from network); 14 Oct 2004 16:38:42 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur-2.apache.org with SMTP; 14 Oct 2004 16:38:42 -0000 Received: (qmail 37555 invoked by uid 500); 14 Oct 2004 16:38:01 -0000 Delivered-To: apmail-cocoon-dev-archive@cocoon.apache.org Received: (qmail 37457 invoked by uid 500); 14 Oct 2004 16:38:00 -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 37431 invoked by uid 99); 14 Oct 2004 16:38:00 -0000 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received-SPF: neutral (hermes.apache.org: local policy) Received: from [212.131.130.66] (HELO spiderwall.cbim.it) (212.131.130.66) by apache.org (qpsmtpd/0.28) with SMTP; Thu, 14 Oct 2004 09:37:58 -0700 Received: (qmail 2630 invoked from network); 14 Oct 2004 17:40:54 -0000 Received: from cuprouter.cbim.it (192.168.4.10) by dns1.cbim.it with SMTP; 14 Oct 2004 17:40:48 -0000 Received: from [192.168.4.50] (pbugo.cbim.it [192.168.4.50]) by cuprouter.cbim.it (8.9.3/8.9.3) with ESMTP id SAA11387 for ; Thu, 14 Oct 2004 18:39:24 +0200 Mime-Version: 1.0 (Apple Message framework v619) In-Reply-To: <416EA4C5.9070704@reverycodes.com> References: <474F1A8E-1D39-11D9-8A87-000A95DC4186@apache.org> <416D9CCE.6000300@reverycodes.com> <200410141020.30669.niclas@hedhman.org> <416DFB2C.7090501@apache.org> <416E57D1.9050506@reverycodes.com> <416E9060.9060004@apache.org> <416EA4C5.9070704@reverycodes.com> Content-Type: multipart/signed; micalg=sha1; boundary=Apple-Mail-37--794445651; protocol="application/pkcs7-signature" Message-Id: <5055BBC0-1DFF-11D9-8A87-000A95DC4186@apache.org> From: Ugo Cei Subject: Re: [RT] Some notes about the "Real Blocks" issue Date: Thu, 14 Oct 2004 18:37:18 +0200 To: dev@cocoon.apache.org X-Mailer: Apple Mail (2.619) X-Spiderwall-Status: Clean X-Spiderwall-Scanned: spiderwall.cbim.it X-Virus-Checked: Checked X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N --Apple-Mail-37--794445651 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed Il giorno 14/ott/04, alle 18:09, Vadim Gritsenko ha scritto: > Other question I have is what we are going to do with the component > base we developed and depend on which currently resides in excalibur > repository. Should those be copied into Cocoon repository (and > springified as needed?)? Things like the SourceResolver, you mean? I have already "springified" it and put it (or at least a simplified version of it) here: http://svn.apache.org/repos/asf/cocoon/whiteboard/butterfly/src/java/ org/apache/butterfly/source/ Actually, I don't like the term "springified". I'd rather say POJO-ified, since it has just one dependency upon Spring's ApplicationContext (which is needed to resolve paths relative to a context's base directory). Maybe there's a way to eliminate even that one, but I just did the simplest possible implementation. This is also meant as a response to Stefano's concerns about depending on an alien framework. Once again, I am trying to show that, once you have swallowed the Dependency-Injection kool-aid, your components have very limited dependencies on the framework, or even none at all. So we can design generators, transformers, serializers, etc. that can be deployed _today_ in any existing DI container, and tomorrow in our own container that is designed specifically and optimized for our needs, without rewriting a single line of code! If you take a look at the sitemap components that are now in Butterfly, you will find exactly ZERO dependencies on Spring. And they work, even if in a simplified scenario, but you can get a fscking HTML response from the Butterfly servlet using a generator-transformer-serializer pipeline NOW. Admittedly, it's more of a proof of concept than a usable thing (there's no caching, no sitemap processor, etc.) but it shows it can be done. I could have started by doing my own container (after all, it's not rocket science, right?) and today I would be nowhere near where I am, given the copious free time I have available. Or I could have used the best DI container around and got some real work done. What would have you done in my place? Ugo -- Ugo Cei - http://beblogging.com/ --Apple-Mail-37--794445651 Content-Transfer-Encoding: base64 Content-Type: application/pkcs7-signature; name=smime.p7s Content-Disposition: attachment; filename=smime.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