Return-Path: Delivered-To: apmail-incubator-abdera-user-archive@locus.apache.org Received: (qmail 36076 invoked from network); 12 Jun 2007 19:51:20 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 12 Jun 2007 19:51:20 -0000 Received: (qmail 50496 invoked by uid 500); 12 Jun 2007 19:51:23 -0000 Delivered-To: apmail-incubator-abdera-user-archive@incubator.apache.org Received: (qmail 50476 invoked by uid 500); 12 Jun 2007 19:51:23 -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 50463 invoked by uid 99); 12 Jun 2007 19:51:23 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 12 Jun 2007 12:51:23 -0700 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (herse.apache.org: domain of ixjonez@gmail.com designates 64.233.162.232 as permitted sender) Received: from [64.233.162.232] (HELO nz-out-0506.google.com) (64.233.162.232) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 12 Jun 2007 12:51:18 -0700 Received: by nz-out-0506.google.com with SMTP id m7so1631151nzf for ; Tue, 12 Jun 2007 12:50:57 -0700 (PDT) DKIM-Signature: a=rsa-sha1; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:sender:to:subject:mime-version:content-type:content-transfer-encoding:content-disposition:x-google-sender-auth; b=X6MzFMyR9uPMFfoQPPf92E8IwTPNZtXnI++uWEi+5hOy6H7pREhI1+tYPOrdwWYk+f9uzGCAo6C2UGKJMDCJeD1p7g682CHET+5bQCx35jJAhrEDusR1bnJQcFLcJVbQlNRIynPBj94fJtNratxII7qH3xiFJOsmtJcMkopY3SQ= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:sender:to:subject:mime-version:content-type:content-transfer-encoding:content-disposition:x-google-sender-auth; b=H0Kyuefj6l5npUcPNioFiu42nw5GaLWwmcDpcgXOIJHZEd5Gbrgp4WTnVnFb8et2OmM3gz8TwmU6pqGvzUx7Q7tre92U4K+y5Uq8mhmRVFHOzaZVkFkQfDt5gBeKkCnIbxcFvDLXDUlCh3M0z24BZDp8HWtGVNZHEmMwSHgruEA= Received: by 10.114.92.2 with SMTP id p2mr6987355wab.1181677857226; Tue, 12 Jun 2007 12:50:57 -0700 (PDT) Received: by 10.114.192.6 with HTTP; Tue, 12 Jun 2007 12:50:57 -0700 (PDT) Message-ID: <29a761a00706121250o5c207542uec21edba1d36388@mail.gmail.com> Date: Tue, 12 Jun 2007 12:50:57 -0700 From: "Brian Moseley" Sender: ixjonez@gmail.com To: abdera-user@incubator.apache.org Subject: supporting multiple Providers MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline X-Google-Sender-Auth: 26bbfe01f3621003 X-Virus-Checked: Checked by ClamAV on apache.org my server exposes several different types of resources, and i've found it convenient to write a separate provider for each resource type. however, AbstractRequestHandler and ProviderManager don't have any extension points or other ability to make choices about which Provider instance to use to handle a particular request. i'm imagining a provider manager that chooses a provider instance based on matching a URI pattern or a target's class. this would require ProviderManager.getProvider having access to the request context. does this seem reasonable? for now i've taken the cheesy route of using a ProxyProvider class that delegates all methods to one of three different providers based on the target's class. would definitely prefer to have framework support for this.