public boolean link ( D declaration , ServiceReference < S > declarationBinderRef ) { S declarationBinder = bindersManager . getDeclarationBinder ( declarationBinderRef ) ; LOG . debug ( declaration + " match the filter of " + declarationBinder + " : bind them together" ) ; declaration . bind ( declarationBinderRef ) ; try { declarationBinder . addDeclaration ( declaration ) ; } catch ( Exception e ) { declaration . unbind ( declarationBinderRef ) ; LOG . debug ( declarationBinder + " throw an exception when giving to it the Declaration " + declaration , e ) ; return false ; } return true ; }
Try to link the declaration with the importerService referenced by the ServiceReference . return true if they have been link together false otherwise .