Return-Path: Delivered-To: apmail-cocoon-dev-archive@www.apache.org Received: (qmail 5566 invoked from network); 23 Dec 2005 13:02:56 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 23 Dec 2005 13:02:56 -0000 Received: (qmail 73026 invoked by uid 500); 23 Dec 2005 13:02:55 -0000 Delivered-To: apmail-cocoon-dev-archive@cocoon.apache.org Received: (qmail 72489 invoked by uid 500); 23 Dec 2005 13:02:53 -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 72478 invoked by uid 99); 23 Dec 2005 13:02:53 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 23 Dec 2005 05:02:53 -0800 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received-SPF: neutral (asf.osuosl.org: local policy) Received: from [213.133.33.30] (HELO mailrelay.is.nl) (213.133.33.30) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 23 Dec 2005 05:02:52 -0800 Received: from [213.133.51.241] (HELO hai01.hippo.local) by mailrelay.is.nl (CommuniGate Pro SMTP 4.3.5) with ESMTP id 8800635 for dev@cocoon.apache.org; Fri, 23 Dec 2005 14:02:29 +0100 X-MimeOLE: Produced By Microsoft Exchange V6.0.6603.0 Content-Class: urn:content-classes:message MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Subject: repository block - RepositorySourceFactory Date: Fri, 23 Dec 2005 14:02:29 +0100 Message-ID: X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: repository block - RepositorySourceFactory thread-index: AcYHwSFBVfwJEmF3QIeiIXkB8hz2XA== From: "Max Pfingsthorn" To: X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N Dear All, I thought it might be a good idea to make repository handling in cocoon = a little easier. For that, I would like to extend the Repository = interface with a getSource(String uri, Map params) method so that the = RepositorySourceFactory could use it to get a source from a repository. = Right now RepositorySourceFactory doesn't do much else than wrapping = another source in RepositorySource, so something more useful might be = nice. It would be very useful to configure a repository location once and then = call something like repository:somename:/a/path/to/a/resource or, with a default repository: repository:/a/path/to/a/resource and get the right credentials, protocol, base path, and such. That's = what we do at Hippo (in our own very homegrown kind of way) and it has = been working very well. The nice thing would be though that it would work for any Repository = implementation afterwards (even though there is only WebDAVRepository = right now). Maybe the JCR stuff can be adapted as well (a = o.a.c.components.repository.Repository adaptor to javax.jcr.Repository). WDYT? Best regards, Max Pfingsthorn Hippo =20 Oosteinde 11 1017WT Amsterdam The Netherlands Tel +31 (0)20 5224466 ------------------------------------------------------------- m.pfingsthorn@hippo.nl / www.hippo.nl -------------------------------------------------------------