protected void propsFileUpdateNotify ( Properties updatedProps , long sequence ) { if ( aggregator == null || aggregator . getPlatformServices ( ) == null // unit tests? || ! loadFromPropertiesFile ) return ; IPlatformServices platformServices = aggregator . getPlatformServices ( ) ; try { IServiceReference [ ] refs = platformServices . getServiceReferences ( OptionsImpl . class . getName ( ) , "(propsFileName=" + getPropsFile ( ) . getAbsolutePath ( ) . replace ( "\\" , "\\\\" ) + ")" ) ; //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$ //$NON-NLS-4$ if ( refs != null ) { for ( IServiceReference ref : refs ) { String name = ref . getProperty ( "name" ) ; //$NON-NLS-1$ if ( ! registrationName . equals ( name ) ) { OptionsImpl impl = ( OptionsImpl ) platformServices . getService ( ref ) ; if ( impl != null ) { try { impl . propertiesFileUpdated ( updatedProps , sequence ) ; } catch ( Throwable ignore ) { } finally { platformServices . ungetService ( ref ) ; } } } } } } catch ( PlatformServicesException e ) { if ( log . isLoggable ( Level . SEVERE ) ) { log . log ( Level . SEVERE , e . getMessage ( ) , e ) ; } } }
Notify implementations of this class that are listening for properties file updates on the same properties file that the properties file has been updated .