Examples of loaders()


Examples of org.apache.tools.ant.taskdefs.optional.sitraka.bytecode.ClassPathLoader.loaders()

    public Document createDocument(String[] classPath) throws Exception {

        // Iterate over the classpath to identify reference classes
        classFiles = new Hashtable();
        ClassPathLoader cpl = new ClassPathLoader(classPath);
        Enumeration e = cpl.loaders();
        while (e.hasMoreElements()) {
            ClassPathLoader.FileLoader fl = (ClassPathLoader.FileLoader) e.nextElement();
            ClassFile[] classes = fl.getClasses();
            log("Processing " + classes.length + " classes in " + fl.getFile());
            // process all classes
View Full Code Here

Examples of org.infinispan.config.FluentConfiguration.loaders()

      if (config.jmxStatistics().enabled())
         legacy.jmxStatistics();

      // TODO lazy deserialization?

      legacy.loaders()
         .passivation(config.loaders().passivation())
         .preload(config.loaders().preload())
         .shared(config.loaders().shared());

      for (CacheLoaderConfiguration loader : config.loaders().cacheLoaders()) {
View Full Code Here

Examples of org.infinispan.config.FluentConfiguration.loaders()

         .preload(config.loaders().preload())
         .shared(config.loaders().shared());

      for (CacheLoaderConfiguration loader : config.loaders().cacheLoaders()) {
         CacheLoaderConfig clc = adapt(loader);
         legacy.loaders().addCacheLoader(clc);
      }

      legacy.locking()
         .concurrencyLevel(config.locking().concurrencyLevel())
         .isolationLevel(config.locking().isolationLevel())
View Full Code Here

Examples of org.infinispan.configuration.cache.Configuration.loaders()

            assert c.transaction().transactionMode().equals(TransactionMode.NON_TRANSACTIONAL);
            assert c.eviction().strategy().equals(EvictionStrategy.LRU);
            assert c.eviction().maxEntries() == 1000;
            assert c.expiration().lifespan() == 2000;
            assert c.expiration().maxIdle() == 1000;
            assert c.loaders().passivation();
            assert !c.loaders().shared();
            assert c.loaders().cacheLoaders().size() == 1;
            FileCacheStoreConfiguration fcsc = (FileCacheStoreConfiguration) c.loaders().cacheLoaders().get(0);
            assert fcsc.purgeOnStartup();
            assert fcsc.location().equals("nc");
View Full Code Here

Examples of org.infinispan.configuration.cache.Configuration.loaders()

            assert c.eviction().strategy().equals(EvictionStrategy.LRU);
            assert c.eviction().maxEntries() == 1000;
            assert c.expiration().lifespan() == 2000;
            assert c.expiration().maxIdle() == 1000;
            assert c.loaders().passivation();
            assert !c.loaders().shared();
            assert c.loaders().cacheLoaders().size() == 1;
            FileCacheStoreConfiguration fcsc = (FileCacheStoreConfiguration) c.loaders().cacheLoaders().get(0);
            assert fcsc.purgeOnStartup();
            assert fcsc.location().equals("nc");
            assert fcsc.async().enabled();
View Full Code Here

Examples of org.infinispan.configuration.cache.Configuration.loaders()

            assert c.eviction().maxEntries() == 1000;
            assert c.expiration().lifespan() == 2000;
            assert c.expiration().maxIdle() == 1000;
            assert c.loaders().passivation();
            assert !c.loaders().shared();
            assert c.loaders().cacheLoaders().size() == 1;
            FileCacheStoreConfiguration fcsc = (FileCacheStoreConfiguration) c.loaders().cacheLoaders().get(0);
            assert fcsc.purgeOnStartup();
            assert fcsc.location().equals("nc");
            assert fcsc.async().enabled();
            assert fcsc.async().flushLockTimeout() == 1;
View Full Code Here

Examples of org.infinispan.configuration.cache.Configuration.loaders()

            assert c.expiration().lifespan() == 2000;
            assert c.expiration().maxIdle() == 1000;
            assert c.loaders().passivation();
            assert !c.loaders().shared();
            assert c.loaders().cacheLoaders().size() == 1;
            FileCacheStoreConfiguration fcsc = (FileCacheStoreConfiguration) c.loaders().cacheLoaders().get(0);
            assert fcsc.purgeOnStartup();
            assert fcsc.location().equals("nc");
            assert fcsc.async().enabled();
            assert fcsc.async().flushLockTimeout() == 1;
            assert fcsc.async().modificationQueueSize() == 1024;
View Full Code Here

Examples of org.infinispan.configuration.cache.Configuration.loaders()

            .loaders()
               .addLoader()
            .loaders()
               .clearCacheLoaders()
         .build();
      assertEquals(c.loaders().cacheLoaders().size(), 0);
   }

   @Test(expectedExceptions = ConfigurationException.class)
   public void testClusterNameNull() {
      GlobalConfigurationBuilder gc = new GlobalConfigurationBuilder();
View Full Code Here

Examples of org.infinispan.configuration.cache.Configuration.loaders()

      c = cm.getCacheConfiguration("storeAsBinary");
      assert c.storeAsBinary().enabled();

      c = cm.getCacheConfiguration("withFileStore");
      assert c.loaders().preload();
      assert !c.loaders().passivation();
      assert !c.loaders().shared();
      assert c.loaders().cacheLoaders().size() == 1;

      FileCacheStoreConfiguration loaderCfg = (FileCacheStoreConfiguration) c.loaders().cacheLoaders().get(0);
View Full Code Here

Examples of org.infinispan.configuration.cache.Configuration.loaders()

      c = cm.getCacheConfiguration("storeAsBinary");
      assert c.storeAsBinary().enabled();

      c = cm.getCacheConfiguration("withFileStore");
      assert c.loaders().preload();
      assert !c.loaders().passivation();
      assert !c.loaders().shared();
      assert c.loaders().cacheLoaders().size() == 1;

      FileCacheStoreConfiguration loaderCfg = (FileCacheStoreConfiguration) c.loaders().cacheLoaders().get(0);
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.