Return-Path: Delivered-To: apmail-cocoon-dev-archive@www.apache.org Received: (qmail 85133 invoked from network); 14 Jan 2007 15:57:49 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 14 Jan 2007 15:57:49 -0000 Received: (qmail 19231 invoked by uid 500); 14 Jan 2007 15:57:54 -0000 Delivered-To: apmail-cocoon-dev-archive@cocoon.apache.org Received: (qmail 19174 invoked by uid 500); 14 Jan 2007 15:57:54 -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 19163 invoked by uid 99); 14 Jan 2007 15:57:54 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 14 Jan 2007 07:57:54 -0800 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received-SPF: pass (herse.apache.org: local policy) Received: from [130.237.222.115] (HELO smtp.nada.kth.se) (130.237.222.115) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 14 Jan 2007 07:57:44 -0800 X-Authentication-Info: The sender was authenticated as danielf using PLAIN at smtp.nada.kth.se Received: from [85.226.147.15] (c-0f93e255.188-1-64736c14.cust.bredbandsbolaget.se [85.226.147.15]) (authenticated bits=0) by smtp.nada.kth.se (8.12.11.20060308/8.12.11) with ESMTP id l0EFvK9d009363 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO) for ; Sun, 14 Jan 2007 16:57:21 +0100 (MET) Message-ID: <45AA52D9.3050700@nada.kth.se> Date: Sun, 14 Jan 2007 16:57:13 +0100 From: Daniel Fagerstrom User-Agent: Thunderbird 1.5.0.9 (Windows/20061207) MIME-Version: 1.0 To: dev@cocoon.apache.org Subject: Re: What is the deal with "blocks" References: <45944E75.9000502@nada.kth.se> <4b6779bc01ec27c6562ef96b43e92a3f@wrinkledog.com> <459ADE65.9060907@nada.kth.se> <7a43112048ab0cd841d8610059e196a4@comcast.net> <459BC8B4.8020301@nada.kth.se> In-Reply-To: <459BC8B4.8020301@nada.kth.se> Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 8bit X-Virus-Checked: Checked by ClamAV on apache.org I have started to implement what we discussed bellow. I started by applying all outstanding patches that I found and then took a copy of the blocks-fw stuff. The blocks-fw-impl module will not be removed until the new stuff stabilizes. I don't recommend anyone to start update yet as there are a number of refactorings and changes I'd like to do first. /Daniel Daniel Fagerstrom skrev: > Mark Lundquist skrev: >> On Jan 2, 2007, at 2:36 PM, Daniel Fagerstrom wrote: >> >> Finding some term that doesn't contain the word block for >> "polymorphic servlet services", would be much less of a problem as >> it is different from the original block concept and not that many >> people have used the blocks-fw yet.Fair enough :-) >> >> So if someone have suggestions for a better terminology for the >> "polymorphic servlet services" I at least would be prepared to go >> for it. >> >> >> How about just "services"? E.g., >> >> � services-fw > I would prefer servlet-services-fw or just servlet-services. >> � ServiceServlet (or "CocoonServiceServlet"?) > ServletService would be OK. >> � ServiceContext (or "CocoonServiceContext"?) > ServiceServletContext maybe. >> � "service:" protocol > To generic in my taste. I think that "servlet:" protocol would describe > pretty well what it all is about. Also it is implemented using the named > dispatcher mechanism in the ServletContext, so it really is named > servlets that the protocol dispatches to. > > Also we could add some Spring bean factory and XML-schema based > configuration, that put the focus on the embedded servlet instead of the > "blocks fw" so instead of: > > > > > > > > > > > > > > > > > > > we could have something like: > > > contextPath="blockcontext:/cocoon-blocks-fw-sample/test1"> > > > > > > The point here is that the sitemap servlet is considered as an ordinary > bean and the elements in the servlet name space sets up a bean factory > that embeds the sitemap servlet in a block servlet and make sure that > the somewhat special life cycle of servlets is respected. Using a > servlet in the Spring framework would be as easy as: > > > > > > And would be usable outside Cocoon. > > Another advantage of dropping the prefix "block" from the "polymorphic > servlet service" stuff is that I get the impression that many people > believe that anything that is prefixed with block is incredibly > complicated. While the current stuff actually isn't. > > WDYT? > > /Daniel >