public void registerComponentBindingsProvider ( ServiceReference reference ) { log . info ( "registerComponentBindingsProvider" ) ; log . info ( "Registering Component Bindings Provider {} - {}" , new Object [ ] { reference . getProperty ( Constants . SERVICE_ID ) , reference . getProperty ( Constants . SERVICE_PID ) } ) ; String [ ] resourceTypes = OsgiUtil . toStringArray ( reference . getProperty ( ComponentBindingsProvider . RESOURCE_TYPE_PROP ) , new String [ 0 ] ) ; for ( String resourceType : resourceTypes ) { if ( ! this . containsKey ( resourceType ) ) { put ( resourceType , new HashSet < ServiceReference > ( ) ) ; } log . debug ( "Adding to resource type {}" , resourceType ) ; get ( resourceType ) . add ( reference ) ; } }
Registers the ComponentBindingsProvider specified by the ServiceReference .