Return-Path: Delivered-To: apmail-incubator-abdera-user-archive@locus.apache.org Received: (qmail 3591 invoked from network); 16 Apr 2008 03:55:21 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 16 Apr 2008 03:55:21 -0000 Received: (qmail 84620 invoked by uid 500); 16 Apr 2008 03:55:22 -0000 Delivered-To: apmail-incubator-abdera-user-archive@incubator.apache.org Received: (qmail 84601 invoked by uid 500); 16 Apr 2008 03:55:22 -0000 Mailing-List: contact abdera-user-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: abdera-user@incubator.apache.org Delivered-To: mailing list abdera-user@incubator.apache.org Received: (qmail 84592 invoked by uid 99); 16 Apr 2008 03:55:21 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 15 Apr 2008 20:55:21 -0700 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of david.primmer@gmail.com designates 209.85.146.181 as permitted sender) Received: from [209.85.146.181] (HELO wa-out-1112.google.com) (209.85.146.181) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 16 Apr 2008 03:54:39 +0000 Received: by wa-out-1112.google.com with SMTP id n4so3611954wag.6 for ; Tue, 15 Apr 2008 20:54:51 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; bh=IFUxFVe8zyCgNSNrdWPf4Z9BRJDLpRWunwYnj5me8hg=; b=J8mHfz3p7JM0zlqKumiTnNoVihA1Q3qGesWKkm6MYvnBQKlZ1qP/eIUeVA7G+EYU3LgcotzxSC1R0AhakshoN9t2pvhOFSinUd0hd9uv0nawWUdq4TwGE+PM3T+lEJLT3Hx/by02Lf40DpIjp0RSHrO+V7TayrPT0KgZejbDyjk= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=N6osGYSpiKxU6OaEnzUPMgRovsuAna/u9b6NbMASiLus5Klq5BaFzoxLHKUdYwRf1jLjEaxPg2G25SQbZ0nYa8s2HIPN7FGCQ75+i34Z4CClwrjqh9ChtImRc1eRQEKCYTOog1E47g8DCDwq6z4huMyA1Lg42aYm6SuvJCe6U9s= Received: by 10.114.39.16 with SMTP id m16mr9062490wam.146.1208318091863; Tue, 15 Apr 2008 20:54:51 -0700 (PDT) Received: by 10.114.126.18 with HTTP; Tue, 15 Apr 2008 20:54:51 -0700 (PDT) Message-ID: Date: Tue, 15 Apr 2008 20:54:51 -0700 From: "David Primmer" To: abdera-user@incubator.apache.org Subject: Re: CustomProvider example not intended to host more than one adapter? In-Reply-To: <48056B3E.8070709@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <48056B3E.8070709@gmail.com> X-Virus-Checked: Checked by ClamAV on apache.org There is something very similar to this in RouteManager.resolve but it returns a target object and not a CA. I suppose i can just lift that code. Now I understand why it still finds the CA when the last collectionadapter argument was left off in the DefaultProvider's route specifications. Thanks. davep On Tue, Apr 15, 2008 at 7:58 PM, James M Snell wrote: > The CustomProvider example only supports a single adapter but the > AbstractWorkspaceProvider can provide as many as necessary by overriding the > getCollectionAdapter(RequestContext) method. I have a current > implementation using a subclass of AWP that returns one of five different > adapters depending on the Target type. > > - James > > > > David Primmer wrote: > > > I've swapped out routing in the CustomProvider and I'm trying to use > > multiple adapters. CP extends AbstractWorkspaceProvider. That > > implements WorkspaceManager which requires you to implement > > getCollectionAdapter(RequestContext request) in your provider; This is > > easy if you just use one adapter in this provider, you just return it > > as the sample shows. However, what if you have a number of workspaces > > and adapters. AbstractWorkspaceProvider looks like it should support > > this. > > > > Since I'm using RouteManager I thought the RouteManager.resolve would > > handle this dispatching. Should I abandon CP for DefaultProvider? > > > > thanks again! > > > > davep > > > > >