On 2/22/2011 1:28 PM, Thomas Watson wrote:
Sure, but it is more safe to use a bundle that has no dependencies at
all. You want to make sure there is no chance the bundle for the
context being used to register the service is not wired to the service
package you are registering the ServiceFactory for.
Ok, I understand. Your comment, along with with BJ's comment:
Yes with one proviso, that bundle cannot import any package containing
a service you want to proxy. If it does, then the special extender
"privilege" is lost. So it seems that is a risk to be considered.
Also, the life cycle of the proxied services is tied to that bundle.
Which is another reason to use a "dummy" bundle for that purpose. You
can lifecycle manage the ECF core bundle without upsetting the proxied
services (of course that may not be possible if the bundle being
stopped is critical to the function of the proxied services).
So if you have some core ECF bundle which just holds your API (for
example just exports API packages), then you could use that bundle as
the "host" of the proxied services.
...is leading me to create a static dummy for RSA proxies...i.e. rather
than using some other ECF bundle.
Thanks,
Scott
_______________________________________________
OSGi Developer Mail List
[email protected]
https://mail.osgi.org/mailman/listinfo/osgi-dev