abdera-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From James M Snell <jasn...@gmail.com>
Subject Re: supporting multiple Providers
Date Tue, 12 Jun 2007 23:46:02 GMT
FWIW, It is possible to implement your own RequestHandler and
ProviderManager implementations and use those instead.

- James

Brian Moseley wrote:
> 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.
> 

Mime
View raw message