private void patchTransportConfiguration ( ConfigurationBuilderHolder builderHolder , String transportOverrideResource ) throws IOException { if ( transportOverrideResource != null ) { try ( InputStream xml = FileLookupFactory . newInstance ( ) . lookupFileStrict ( transportOverrideResource , ispnClassLoadr ) ) { Properties p = new Properties ( ) ; FileJGroupsChannelConfigurator configurator = new FileJGroupsChannelConfigurator ( "override" , transportOverrideResource , xml , System . getProperties ( ) ) ; p . put ( JGroupsTransport . CHANNEL_CONFIGURATOR , configurator ) ; builderHolder . getGlobalConfigurationBuilder ( ) . transport ( ) . withProperties ( p ) ; } } }
After having parsed the Infinispan configuration file we might want to override the specified JGroups configuration file .