* @throws java.io.IOException if there is a problem with the configuration file.
*/
public DefaultCacheManager(String globalConfigurationFile, String defaultConfigurationFile, String namedCacheFile,
boolean start) throws IOException {
try {
InfinispanConfiguration gconfiguration = InfinispanConfiguration.newInfinispanConfiguration(
globalConfigurationFile, InfinispanConfiguration.resolveSchemaPath(),
Thread.currentThread().getContextClassLoader());
globalConfiguration = gconfiguration.parseGlobalConfiguration();
globalConfiguration.accept(configurationValidator);
InfinispanConfiguration dconfiguration = InfinispanConfiguration.newInfinispanConfiguration(
defaultConfigurationFile, InfinispanConfiguration.resolveSchemaPath(),
Thread.currentThread().getContextClassLoader());
defaultConfiguration = dconfiguration.parseDefaultConfiguration();
if (namedCacheFile != null) {
InfinispanConfiguration NCconfiguration = InfinispanConfiguration.newInfinispanConfiguration(
namedCacheFile, InfinispanConfiguration.resolveSchemaPath(),
Thread.currentThread().getContextClassLoader());
for (Map.Entry<String, Configuration> entry : NCconfiguration.parseNamedConfigurations().entrySet()) {
Configuration c = defaultConfiguration.clone();
c.applyOverrides(entry.getValue());
configurationOverrides.put(entry.getKey(), c);
}
}