Class ServiceReferenceUtils
java.lang.Object
com.ibm.wsspi.kernel.service.utils.ServiceReferenceUtils
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionstatic LonggetId(org.osgi.framework.ServiceReference<?> ref) static IntegergetRanking(org.osgi.framework.ServiceReference<?> ref) static voidsortByRankingOrder(org.osgi.framework.ServiceReference<?>[] refs) Sorts an array of service references in reverse order (highest service ranking first).
- 
Constructor Details- 
ServiceReferenceUtilspublic ServiceReferenceUtils()
 
- 
- 
Method Details- 
getId- Parameters:
- ref- the service reference
- Returns:
- the service id
- See Also:
- 
- Constants.SERVICE_ID
 
 
- 
getRanking- Parameters:
- ref- the service reference
- Returns:
- the service ranking, or 0 if unspecified
- See Also:
- 
- Constants.SERVICE_RANKING
 
 
- 
sortByRankingOrderpublic static void sortByRankingOrder(org.osgi.framework.ServiceReference<?>[] refs) Sorts an array of service references in reverse order (highest service ranking first). This method properly handles asynchronous updates to the service ranking.- Parameters:
- refs- input and output array of service references
 
 
-