Return-Path: Delivered-To: apmail-cocoon-dev-archive@www.apache.org Received: (qmail 38715 invoked from network); 22 Oct 2003 14:38:26 -0000 Received: from daedalus.apache.org (HELO mail.apache.org) (208.185.179.12) by minotaur-2.apache.org with SMTP; 22 Oct 2003 14:38:26 -0000 Received: (qmail 33264 invoked by uid 500); 22 Oct 2003 14:38:17 -0000 Delivered-To: apmail-cocoon-dev-archive@cocoon.apache.org Received: (qmail 33240 invoked by uid 500); 22 Oct 2003 14:38:17 -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 33226 invoked from network); 22 Oct 2003 14:38:16 -0000 Received: from unknown (HELO mail.s-und-n.de) (212.8.217.2) by daedalus.apache.org with SMTP; 22 Oct 2003 14:38:16 -0000 Received: from notes.sundn.de (ntsrv5.sundn.de [10.10.2.10]) by mail.s-und-n.de (postfix) with ESMTP id A04BDD2A16 for ; Wed, 22 Oct 2003 16:38:18 +0200 (CEST) Received: from hw0386 ([10.10.2.46]) by notes.sundn.de (Lotus Domino Release 5.0.8) with SMTP id 2003102216381763:56748 ; Wed, 22 Oct 2003 16:38:17 +0200 From: "Carsten Ziegeler" To: Subject: RE: RequestLifecycle components Date: Wed, 22 Oct 2003 16:41:04 +0200 Message-ID: MIME-Version: 1.0 X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook IMO, Build 9.0.6604 (9.0.2911.0) X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165 In-Reply-To: <3F96949A.3000908@apache.org> Importance: Normal X-MIMETrack: Itemize by SMTP Server on PBSN1/Systeme und Netzwerke(Release 5.0.8 |June 18, 2001) at 22.10.2003 16:38:17, Serialize by Router on PBSN1/Systeme und Netzwerke(Release 5.0.8 |June 18, 2001) at 22.10.2003 16:38:18, Serialize complete at 22.10.2003 16:38:18 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset="us-ascii" X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N Berin Loritsch wrote: > > I'm running into an issue here with RequestLifecycle components. > I want to > write the handler and such, and we can assume one handler to one component > definition (configuration, etc.). Right now the helper classes > assume we have > access to a Role. This is not the case. > > I believe we can simplify things a little, but we cannot assume > we have acess > to the role. I will let you know when I am done with this issue, > but if someone > has any hints, help to offer, etc. let me know. > If you need help, just let me know. I'm really thinking more and more that we simply should drop RequestLifecycle and GlobalRequestLifecycle. Why? In most cases they are not used for the lifecycle of the component but for the lifecycle of the data the component acts on. You can achieve the same thing now by using the o.a.c.components.persistence.RequestDataStore which is imho a cleaner solution. Now, the advantage of the RequestLifecycleComponent is performance. If you have several places during a request where this component is used, only one instance of a RLC is used, which means the data it acts on is only fetched once as well. If you use a Poolable component with the RequestDataStore, this component is retrieved several times and several times the data is fetched from the store. And exactly this last point, fetching the data from the request is a little bit more costly. Hmm. *If* someone would start a vote on deprecating RLC in 2.1 now and removing them from 2.2, my vote would be above 0. Carsten