Hi, On Tuesday, November 26, 2013, Sean Steimer wrote:
> ...Is there a way to force unbind and bind to happen for all Services which > implement MyServiceInterface anytime a single instance changes?... I don't think so. > ...Alternatively, is there a good way to retrieve the service.ranking value > from my bind method, so that I can just sort them there?... the simplest is to sort the ServiceReference objects, which as per [1] take the service ranking into account for comparison. Lowest service ranking comes on top after sorting IIRC. We also have a SortedServiceTracker [2] that does that. -Bertrand [1] http://www.osgi.org/javadoc/r4v43/core/org/osgi/framework/ServiceReference.html [2] https://svn.apache.org/repos/asf/sling/trunk/bundles/commons/osgi/src/main/java/org/apache/sling/commons/osgi/SortingServiceTracker.java
