[
Date Prev][
Date Next][
Thread Prev][
Thread Next][
Date Index][
Thread Index]
[
List Home]
Re: [ecf-dev] Exception Handling of Remote Calls
|
On 7/1/2014 4:11 AM, Peter Hermsdorf wrote:
Hi Scott,
Do you have any suggestions of how to intercept in this getAdapter
loading mechanism?
There are several possibilities, the easiest of which is probably to
create a new provider with an IContainer type implementing getAdapter
to return your custom implementation.
Would that mean copying the generic server provider and adjusting the
plugin.xml and adjusting the provider id into something custom?
No, it would mean creating a new provider (with a new unique provider id
aka containerFactory), which extends or otherwise uses the generic
server classes.
I wanted to extend the existing provider (in a fragment or additional
bundle), but that probably does not work with the plugin.xml
registration since it cannot override the original registration in the
ecf.provider bundle.... ?!
No, it cannot override it. Actually it can, but doing that creates a
much more convoluted and brittle technical path. It's generally much
better to create a new provider with it's own id/containerFactoryName.
Scott