* @throws java.io.IOException if there is a problem with the configuration file.
*/
@Deprecated
public DefaultCacheManager(String globalConfigurationFile, String defaultConfigurationFile, String namedCacheFile,
boolean start) throws IOException {
ParserRegistry parserRegistry = new ParserRegistry();
ConfigurationBuilderHolder globalConfigurationBuilderHolder = parserRegistry.parseFile(globalConfigurationFile);
ConfigurationBuilderHolder defaultConfigurationBuilderHolder = parserRegistry.parseFile(defaultConfigurationFile);
globalConfiguration = globalConfigurationBuilderHolder.getGlobalConfigurationBuilder().build();
defaultConfiguration = defaultConfigurationBuilderHolder.getDefaultConfigurationBuilder().build();
if (namedCacheFile != null) {
ConfigurationBuilderHolder namedConfigurationBuilderHolder = parserRegistry.parseFile(namedCacheFile);
Entry<String, ConfigurationBuilder> entry = namedConfigurationBuilderHolder.getNamedConfigurationBuilders().entrySet().iterator().next();
configurationOverrides.put(entry.getKey(), entry.getValue().build());
}
globalComponentRegistry = new GlobalComponentRegistry(this.globalConfiguration, this, caches.keySet());