Package org.jboss.cache.factories

Examples of org.jboss.cache.factories.XmlConfigurationParser.parseFile()


      {
         //         cache_ = new PojoTreeCache();
         //         cache_.setConfiguration(new XmlConfigurationParser().parseFile(configStr));

         XmlConfigurationParser parser = new XmlConfigurationParser();
         Configuration expected = parser.parseFile(configStr);

         init(expected, toStart);
      }
      catch (Exception e)
      {
View Full Code Here


   }

   public Cache<K, V> createCache(String configFileName, boolean start) throws ConfigurationException
   {
      XmlConfigurationParser parser = new XmlConfigurationParser();
      Configuration c = parser.parseFile(configFileName);
      return createCache(c, start);
   }

   /**
    * This implementation clones the configuration passed in before using it.
View Full Code Here

   }

   public Cache<K, V> createCache(String configFileName, boolean start) throws ConfigurationException
   {
      XmlConfigurationParser parser = new XmlConfigurationParser();
      Configuration c = parser.parseFile(configFileName);
      return createCache(c, start);
   }

   /**
    * This implementation clones the configuration passed in before using it.
View Full Code Here

   }

   public void testMultiplexerStack() throws Exception
   {
      XmlConfigurationParser parser = new XmlConfigurationParser();
      Configuration conf = parser.parseFile("META-INF/conf-test/mux-service.xml");

      // test that multiplexer settings have been read in properly.
      //assertEquals("MultiplexerService", "jgroups.mux:name=Multiplexer", conf.getMultiplexerService());
      assertEquals("MultiplexerStack", "tcp", conf.getMultiplexerStack());
      assertNull("ClusterConfig", conf.getClusterConfig());
View Full Code Here

   private static final Log log = LogFactory.getLog(ConfigurationCloningTest.class);
  
   public void testClone() throws Exception
   {
      XmlConfigurationParser parser = new XmlConfigurationParser();
      Configuration c = parser.parseFile(DEFAULT_CONFIGURATION_FILE);
     
      try {
         Configuration clone = c.clone();  
        
         // Test a few simple properties
View Full Code Here

   @BeforeMethod(alwaysRun = true)
   public void setUp()
   {
      XmlConfigurationParser parser = new XmlConfigurationParser();
      expected = parser.parseFile(configFile);
   }

   @AfterMethod(alwaysRun = true)
   public void tearDown()
   {
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.