@ Modified ( id = "importerServices" ) void modifiedImporterService ( ServiceReference < ImporterService > serviceReference ) { try { importersManager . modified ( serviceReference ) ; } catch ( InvalidFilterException invalidFilterException ) { LOG . error ( "The ServiceProperty \"" + TARGET_FILTER_PROPERTY + "\" of the ImporterService " + bundleContext . getService ( serviceReference ) + " doesn't provides a valid Filter." + " To be used, it must provides a correct \"" + TARGET_FILTER_PROPERTY + "\" ServiceProperty." , invalidFilterException ) ; importersManager . removeLinks ( serviceReference ) ; return ; } if ( importersManager . matched ( serviceReference ) ) { importersManager . updateLinks ( serviceReference ) ; } else { importersManager . removeLinks ( serviceReference ) ; } }
Update the Target Filter of the ImporterService . Apply the induce modifications on the links of the ImporterService