You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@sling.apache.org by kw...@apache.org on 2015/12/27 12:57:48 UTC

svn commit: r1721805 - /sling/trunk/bundles/commons/osgi/src/main/java/org/apache/sling/commons/osgi/RankedServices.java

Author: kwin
Date: Sun Dec 27 11:57:48 2015
New Revision: 1721805

URL: http://svn.apache.org/viewvc?rev=1721805&view=rev
Log:
SLING-5403 add new method to return a list to not enforce a new major package version

Modified:
    sling/trunk/bundles/commons/osgi/src/main/java/org/apache/sling/commons/osgi/RankedServices.java

Modified: sling/trunk/bundles/commons/osgi/src/main/java/org/apache/sling/commons/osgi/RankedServices.java
URL: http://svn.apache.org/viewvc/sling/trunk/bundles/commons/osgi/src/main/java/org/apache/sling/commons/osgi/RankedServices.java?rev=1721805&r1=1721804&r2=1721805&view=diff
==============================================================================
--- sling/trunk/bundles/commons/osgi/src/main/java/org/apache/sling/commons/osgi/RankedServices.java (original)
+++ sling/trunk/bundles/commons/osgi/src/main/java/org/apache/sling/commons/osgi/RankedServices.java Sun Dec 27 11:57:48 2015
@@ -155,10 +155,20 @@ public final class RankedServices<T> imp
    * Lists all services registered in OSGi, sorted by service ranking
    * (either ascending or descending depending on the order given in the constructor).
    * @return Collection of service instances
+   * @deprecated Use {@link #getList()} instead
    */
   public Collection<T> get() {
     return sortedServices;
   }
+  
+  /**
+   * Lists all services registered in OSGi, sorted by service ranking
+   * (either ascending or descending depending on the order given in the constructor).
+   * @return List of service instances
+   */
+  public List<T> getList() {
+    return sortedServices;
+  }
 
   /**
    * Iterates all services registered in OSGi, sorted by service ranking