Examples of ConfigurationValidatingVisitor


Examples of org.infinispan.config.ConfigurationValidatingVisitor

   public DefaultCacheManager(String globalConfigurationFile, String defaultConfigurationFile, String namedCacheFile,
                              boolean start) throws IOException {
      try {
         InfinispanConfiguration gconfiguration = InfinispanConfiguration.newInfinispanConfiguration(
                 globalConfigurationFile, InfinispanConfiguration.resolveSchemaPath(),
                 new ConfigurationValidatingVisitor());

         globalConfiguration = gconfiguration.parseGlobalConfiguration();

         InfinispanConfiguration dconfiguration = InfinispanConfiguration.newInfinispanConfiguration(
                 defaultConfigurationFile, InfinispanConfiguration.resolveSchemaPath(),
                 new ConfigurationValidatingVisitor());

         defaultConfiguration = dconfiguration.parseDefaultConfiguration();

         if (namedCacheFile != null) {
            InfinispanConfiguration NCconfiguration = InfinispanConfiguration.newInfinispanConfiguration(
                    namedCacheFile, InfinispanConfiguration.resolveSchemaPath(),
                    new ConfigurationValidatingVisitor());

            for (Map.Entry<String, Configuration> entry : NCconfiguration.parseNamedConfigurations().entrySet()) {
               Configuration c = defaultConfiguration.clone();
               c.applyOverrides(entry.getValue());
               configurationOverrides.put(entry.getKey(), c);
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.