private void addRemotePropertiesConfigurationSources ( ConfigurationRegistry configuration , CorePlugin corePlugin ) { final List < URL > configurationUrls = corePlugin . getRemotePropertiesConfigUrls ( ) ; if ( corePlugin . isDeactivateStagemonitorIfRemotePropertyServerIsDown ( ) ) { assertRemotePropertiesServerIsAvailable ( configurationUrls . get ( 0 ) ) ; } logger . debug ( "Loading RemotePropertiesConfigurationSources with: configurationUrls = " + configurationUrls ) ; final HttpClient sharedHttpClient = new HttpClient ( ) ; for ( URL configUrl : configurationUrls ) { final RemotePropertiesConfigurationSource source = new RemotePropertiesConfigurationSource ( sharedHttpClient , configUrl ) ; configuration . addConfigurationSourceAfter ( source , SimpleSource . class ) ; } configuration . reloadAllConfigurationOptions ( ) ; }
Creates and registers a RemotePropertiesConfigurationSource for each configuration url