Return-Path: Delivered-To: apmail-cocoon-dev-archive@www.apache.org Received: (qmail 19837 invoked from network); 1 Mar 2005 10:29:53 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur-2.apache.org with SMTP; 1 Mar 2005 10:29:53 -0000 Received: (qmail 15771 invoked by uid 500); 1 Mar 2005 10:29:51 -0000 Delivered-To: apmail-cocoon-dev-archive@cocoon.apache.org Received: (qmail 15702 invoked by uid 500); 1 Mar 2005 10:29:51 -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 15689 invoked by uid 99); 1 Mar 2005 10:29:51 -0000 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received-SPF: pass (hermes.apache.org: local policy) Received: from essemtepe.nada.kth.se (HELO smtp.nada.kth.se) (130.237.222.115) by apache.org (qpsmtpd/0.28) with ESMTP; Tue, 01 Mar 2005 02:29:51 -0800 X-Authentication-Info: The sender was authenticated as danielf using PLAIN at smtp.nada.kth.se Received: from nada.kth.se (cvap80.nada.kth.se [130.237.218.93]) (authenticated bits=0) by smtp.nada.kth.se (8.12.11/8.12.11) with ESMTP id j21ATlXb000985 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO) for ; Tue, 1 Mar 2005 11:29:48 +0100 (MET) Message-ID: <4224441B.6040008@nada.kth.se> Date: Tue, 01 Mar 2005 11:29:47 +0100 From: Daniel Fagerstrom User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.4.2) Gecko/20040308 X-Accept-Language: sv, en-us MIME-Version: 1.0 To: dev@cocoon.apache.org Subject: Re: [RT] A Unified Environment Model? References: <42239FC2.3020503@nada.kth.se> <4223AAAC.6010306@dslextreme.com> In-Reply-To: <4223AAAC.6010306@dslextreme.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N Ralph Goers wrote: > Daniel Fagerstrom wrote: > >> API >> --- >> >> OM is a Map. IMs are like maps but have both construction and runtime >> configurations and also interpret the "key" in much more sofisticated >> ways than maps normally do. >> >> WDYT? >> >> /Daniel > > Wow. Cocoon already has an ObjectModel Map which is used all over the > place. If you want to integrate FOM with the rest of Cocoon maybe > that's the place to start. The idea is that the unified script object model is a script friendly embeding of part of the information in the ObjectModel Map. > I have a feeling your definition of OM and the existing ObjectModel > could be integrated together, but perhaps not without some amount of pain. Any ideas how? > Although I like the ease of using a simple Map, it does have some > drawbacks in the fact that you can't really "trust" that the objects > returned are actually of the correct type (i.e. - you really should do > an instanceof to verify it). I also like that one can always locate > the current object model via > ContextMap.getCurrentContext.get("objectModel") from anywhere. Something like that could be useable for the unified scripting object model as well. /Daniel