public List < ServiceReference > getReferences ( String resourceType ) { List < ServiceReference > references = new ArrayList < ServiceReference > ( ) ; if ( containsKey ( resourceType ) ) { references . addAll ( get ( resourceType ) ) ; Collections . sort ( references , new Comparator < ServiceReference > ( ) { @ Override public int compare ( ServiceReference r0 , ServiceReference r1 ) { Integer p0 = OsgiUtil . toInteger ( r0 . getProperty ( ComponentBindingsProvider . PRIORITY ) , 0 ) ; Integer p1 = OsgiUtil . toInteger ( r1 . getProperty ( ComponentBindingsProvider . PRIORITY ) , 0 ) ; return - 1 * p0 . compareTo ( p1 ) ; } } ) ; } return references ; }
Gets the ComponentBindingProvider references for the specified resource type .