On 11/16/09 11:55, David Bosschaert wrote:
Alan D. Cabrera wrote:

On Nov 13, 2009, at 7:51 AM, BJ Hargrave wrote:

If you optionally import the cm package and don't "get it" when you resolve, then you will never see CA, so just use the defaults.

I'm wondering if this is true. Can't another bundle get installed later that exports the package?

Yes, it can, but if it was optionally imported by another bundle which was already resolved, then it will never see it since optional imports are only checked at resolve time. If it was dynamically imported, then that would be another story.



Regards,
Alan
Well even just checking for the cm package doesn't provide much value because it's typically provided by a bundle that contains all the Compendium interfaces (both Equinox and Felix have such a bundle).

We've deprecated our bundle and will no longer release it, however, your point is valid since the official OSGi JAR files are bundles providing the package without the impl.

-> richard

Finding the cm package gives you no guarantee whatsoever that the ConfigurationAdmin service is actually there.

Not finding it tells you that the ConfigurationAdmin service can't be there yet, but as you say it could be installed later...

David

_______________________________________________
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