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