What is the best practice for providing multiple versions of a service?

Say I have four bundles:

* API exports the service API package (including an interface
org.example.Service).

* IMPL-1.0 imports the Service interface and registers a service under
"org.example.Service".

* IMPL-1.1 imports the Service interface and registers another service
under "org.example.Service".

* APP imports the Service interface, and can use either of the services
(but only one).  However, I would prefer it to use IMPL-1.1's version.

Versioning handles the similar situation for bundles and packages, but
unless I've completely missed it service references are not versioned.
What would be the best way to handle APP?


-- 
Tommy M. McGuire
[EMAIL PROTECTED]
512-784-5741

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

Reply via email to