I think you are not correct.

If a bundle has no wire to the package, which system bundle shouldn't since it cannot import, then it should get back all service references. I think the spec assumes you are using reflection if you have no wire to the package. I cannot remember if this behavior is spec'ed some place but I thought so. At least that's what we do in Felix (and Equinox, I believe).

-> richard

On 4/14/09 8:09 PM, Alan D. Cabrera wrote:
After reading the core spec it seems that if I look for service using the system bundle context, I will never be able to find any application specific service. Let me explain my reasoning and maybe someone can show me where my disconnect is occurring.

Upon reading the definition of the getServiceReferences() method I see that isAssignableTo() must be called with all the service interfaces and the bundle that is being used to perform the "call" to getServiceReferences().

It seems to me that if I pass the system bundle to isAssignableTo() I will get false for just about all the application specific service interfaces.

If that is true then it seems that I will not be able to retrieve most service references with the system bundle.

Am I correct?


Regards,
Alan


_______________________________________________
OSGi Developer Mail List
[email protected]
https://mail.osgi.org/mailman/listinfo/osgi-dev
_______________________________________________
OSGi Developer Mail List
[email protected]
https://mail.osgi.org/mailman/listinfo/osgi-dev

Reply via email to