abdera-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Brian Moseley" <...@osafoundation.org>
Subject supporting multiple Providers
Date Tue, 12 Jun 2007 19:50:57 GMT
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.

View raw message