Return-Path: Delivered-To: apmail-cocoon-dev-archive@www.apache.org Received: (qmail 33646 invoked from network); 3 Apr 2008 18:59:09 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 3 Apr 2008 18:59:09 -0000 Received: (qmail 79643 invoked by uid 500); 3 Apr 2008 18:59:01 -0000 Delivered-To: apmail-cocoon-dev-archive@cocoon.apache.org Received: (qmail 79560 invoked by uid 500); 3 Apr 2008 18:59:01 -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 79545 invoked by uid 99); 3 Apr 2008 18:59:01 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 03 Apr 2008 11:59:01 -0700 X-ASF-Spam-Status: No, hits=1.0 required=10.0 tests=RCVD_IN_BL_SPAMCOP_NET,RCVD_IN_DNSWL_LOW,SPF_HELO_PASS,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of grek@tuffmail.com designates 216.86.168.178 as permitted sender) Received: from [216.86.168.178] (HELO mxout-03.mxes.net) (216.86.168.178) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 03 Apr 2008 18:58:10 +0000 Received: from [192.168.0.126] (unknown [212.76.37.214]) by smtp.mxes.net (Postfix) with ESMTP id 6973523E4B7 for ; Thu, 3 Apr 2008 14:58:27 -0400 (EDT) Message-ID: <47F528CF.4040101@tuffmail.com> Date: Thu, 03 Apr 2008 20:58:23 +0200 From: Grzegorz Kossakowski User-Agent: Thunderbird 2.0.0.12 (X11/20080226) MIME-Version: 1.0 To: dev@cocoon.apache.org Subject: Re: JNet integration doubts References: <47E509B2.7050003@tuffmail.com> <47F52534.5090101@apache.org> In-Reply-To: <47F52534.5090101@apache.org> Content-Type: text/plain; charset=ISO-8859-2; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org Reinhard Poetz pisze: > Grzegorz Kossakowski wrote: >> Hello, >> >> I've played with JNet for a while trying to integrate it with SSF and run >> into many troubles. >> >> First of all, I'm not sure if I understand whole concept correctly. Do I >> understand correctly that JNet provides SourceURLStreamHandlerFactory >> class >> that acts just like a bridge supporting legacy Source implementations? >> Should >> we consider URLStreamHandlerFactory and URLStreamHandler as general >> replacements for SourceFactory and Source interfaces? >> >> If a long-term goal is to drop Source and SourceFactory interfaces >> what about >> extension like ModifiableSource, MoveableSource, PostableSource? How >> can they >> be supported by URLConnection and friends? >> >> --- o0o --- >> >> Another problem is with the implementation. There is a problem with >> installing SourceURLStreamHandlerFactory because: a) it must be installed >> before ServletFactoryBean is being used at Spring initialization phase >> b) it >> must be installed after ApplicationContext is created because >> SourceFactories >> are components that must be initialized by Spring container. >> >> I have no clue how to solve this problem. Any ideas? > > Why do we have to replace the blockcontext: protocol at all? Take a look at its current source code. There is no such a thing like "blockcontext:" protocol implementation at the moment. In my [RT] mail I explained how we could possibly to stop cheating pretending there is a blockcontext protocol and replace it with blockcontext expression that would better reflect current implementation. Another possibility (suggested by you) is to provide real implementation of blockcontext: protocol and use blockcontext protocol in base URLs for blocks. I cannot comment on this solution because I haven't enough free time to check all implications. Remember: you will put blockcontext into ServletContext that is rather general interface. I don't say there is any problem, I'm only saying I haven't checked if there is none. I prefer (only for now, as a quick solution) first way because there is not much room for discussion, brainstorming and general research which is quite opposite to URL-em-them-all approach. I really would like to fix SSF ASAP and let the discussion/research on URL go in parallel. -- Grzegorz Kossakowski