Am 01.08.2012 04:48, schrieb Mengxin Zhu: > P2 is searching services via OSGi API that would sort the service > implementations by their ranking.
At least in the code snippets posted p2 uses BundleContext#getServiceReferences(...). Nothing in the contract of those methods states that the result returned is sorted in any way. One either needs sort the results (ServiceReference implements Comparable) or switch to using a ServiceTracker which honors service ranking in ServiceTracker#getServiceReference(). -Gunnar -- Gunnar Wagenknecht [email protected] http://wagenknecht.org/ _______________________________________________ p2-dev mailing list [email protected] https://dev.eclipse.org/mailman/listinfo/p2-dev
