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