Return-Path: Delivered-To: apmail-xml-cocoon-dev-archive@xml.apache.org Received: (qmail 42556 invoked by uid 500); 22 May 2003 06:36:18 -0000 Mailing-List: contact cocoon-dev-help@xml.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: list-post: Reply-To: cocoon-dev@xml.apache.org Delivered-To: mailing list cocoon-dev@xml.apache.org Received: (qmail 42543 invoked from network); 22 May 2003 06:36:18 -0000 Received: from mail.s-und-n.de (212.8.217.2) by daedalus.apache.org with SMTP; 22 May 2003 06:36:18 -0000 Received: from mail.s-und-n.de (localhost [127.0.0.1]) by mail2.s-und-n.de (postfix) with ESMTP id 96FF2B6D2F for ; Thu, 22 May 2003 08:36:29 +0200 (CEST) Received: from notes.sundn.de (ntsrv5.sundn.de [10.10.2.10]) by mail.s-und-n.de (postfix) with ESMTP id 74538B6DA6 for ; Thu, 22 May 2003 08:36:29 +0200 (CEST) Received: from hw0386 ([10.10.2.34]) by notes.sundn.de (Lotus Domino Release 5.0.8) with SMTP id 2003052208362835:278653 ; Thu, 22 May 2003 08:36:28 +0200 From: "Carsten Ziegeler" To: Subject: RE: [RT] Access to the object model Date: Thu, 22 May 2003 08:37:52 +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) In-Reply-To: Importance: Normal X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165 X-MIMETrack: Itemize by SMTP Server on PBSN1/Systeme und Netzwerke(Release 5.0.8 |June 18, 2001) at 22.05.2003 08:36:28, Serialize by Router on PBSN1/Systeme und Netzwerke(Release 5.0.8 |June 18, 2001) at 22.05.2003 08:36:29, Serialize complete at 22.05.2003 08:36:29 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset="us-ascii" X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N Stefano Mazzocchi wrote: > > I'm big time with Sylvain here. > > IoC is also defensive programming: I don't give you access to stuff that > you can abuse. > > not *you*, Carsten, but others will. > Agreed. > In a future where cocoon development will be distributed in various > places without knowledged people like us stopping all abuses when they > start, we must distill this knowledge into the API or Cocoon will become > an architectural mess (it already is, in some parts, in fact we'll have > to cleanup the object model one day) > Ok. > >>So, what about implementing this Context thing then? > >> > > > > > > +1 from me ;-) > > I'm sorry, but I'm still -1. > > An avalon component should *NOT* have access to the cocoon object model. > There should be something else in between glueing the two. > > Now, prove me wrong. > :) Sorry, I'm a little bit clueless about how this glueing could look like. What do you not like about the following approach? If a component implements Contextualizable it gets the Context object. Via the context object it can get the object model by a defined key. Or we could restrict the access to destinct objects in the object model, like request and response. What do you think? Carsten