Return-Path: Delivered-To: apmail-cocoon-dev-archive@www.apache.org Received: (qmail 29868 invoked from network); 31 Mar 2004 12:55:29 -0000 Received: from daedalus.apache.org (HELO mail.apache.org) (208.185.179.12) by minotaur-2.apache.org with SMTP; 31 Mar 2004 12:55:29 -0000 Received: (qmail 22555 invoked by uid 500); 31 Mar 2004 12:55:17 -0000 Delivered-To: apmail-cocoon-dev-archive@cocoon.apache.org Received: (qmail 22487 invoked by uid 500); 31 Mar 2004 12:55:16 -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 22388 invoked from network); 31 Mar 2004 12:55:16 -0000 Received: from unknown (HELO mail.s-und-n.de) (212.8.217.2) by daedalus.apache.org with SMTP; 31 Mar 2004 12:55:15 -0000 Received: from notes.sundn.de (ntsrv5.sundn.de [10.10.2.10]) by mail.s-und-n.de (postfix) with ESMTP id E5B0819F657 for ; Wed, 31 Mar 2004 14:55:15 +0200 (CEST) Received: from hw0386 ([10.10.2.54]) by notes.sundn.de (Lotus Domino Release 6.5) with ESMTP id 2004033114485768-14386 ; Wed, 31 Mar 2004 14:48:57 +0200 From: "Carsten Ziegeler" To: Subject: RE: [Kernel2.2] Source Resolving Date: Wed, 31 Mar 2004 14:57:30 +0200 Organization: S&N AG MIME-Version: 1.0 X-Mailer: Microsoft Office Outlook, Build 11.0.5510 In-Reply-To: <19E35472-8312-11D8-9E05-000393C27E0C@betaversion.org> X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165 Thread-Index: AcQXHhV64WPwwZ2kR2+Qsf4BU5vUlQAAXMvQ X-MIMETrack: Itemize by SMTP Server on PBSN1/Systeme und Netzwerke(Release 6.5|September 26, 2003) at 31.03.2004 14:48:57, Serialize by Router on PBSN1/Systeme und Netzwerke(Release 6.5|September 26, 2003) at 31.03.2004 14:48:58, Serialize complete at 31.03.2004 14:48:58 Message-ID: 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 Pier Fumagalli wrote: > > I'm thinking that blocks should always be distributed as > "zip" files (note, not JAR archives), containing a > "block.xml" file (block > descriptor) and the different JARs required by it (its > libraries) or its directories... > > This zip should be expanded by a Library implementation so > that a Loader can instantiate a Block, and this expansion can > (should) be done in the temp directory... > Ah, yes, I remember - we discussed this long time ago. Right. Sorry. > >> If we want to build the full resolver inside the framework itself, > >> and therefore the "resolve" method in "Wirings" and "Wire" will > >> accept "block:wiring:/path" instead of only > "wiring:/path", then yes, > >> I agree with you that source resolution should be closer > (or same as) > >> Excalibur's SourceResolver. > > > > Currently, I don't know which way is better :) Perhaps I have to > > understand the whole thing before I should comment on just some > > parts... > > In my requirement for the framework as VNU I don't personally > need the "extended" (a-la SourceResolver) resolution, but > it's trivial to implement, although it poses some questions > on how to implement it... > I'll leave this up to you guys to decide what's better... :) > > >> Only "issue" I might see with that is that Excalibur's > Source doesn't > >> have the "isDirectory()" and "children()" methods, so, > well, I don't > >> absolutely like it because it's prone to hacks. > >> > > Ah, this is in a sub interface of Source (TraversableSource or > > something like that). > > On 31 Mar 2004, at 13:09, Gianugo Rabellino wrote: > > > Uh? It's in TraversableSource, a subinterface, yes, but > it's there... > > I still prefer something like: > > if (!source.isDirectory()) throw Exception("I need a directory"); > > rather than > > if (!(source instanceof TraversableSource)) throw > Exception("I need a directory"); > > I don't see the point of two interfaces (and as I did, it's > easy to miss). > Yes, that's true. Ok, so time will tell what's best :) Thanks! Carsten