Examples of LoaderConfiguration


Examples of org.codehaus.groovy.tools.LoaderConfiguration

        project.addReference(name,loader);
    }
   
    private RootLoader makeRoot() {
        String[] list = taskClasspath.list();
        LoaderConfiguration lc = new LoaderConfiguration();
        for (int i=0; i<list.length; i++) {
            if (list[i].matches(".*ant-[^/]*jar$")) {
                continue;
            }
            if (list[i].matches(".*commons-logging-[^/]*jar$")) {
                continue;
            }
            if (list[i].matches(".*xerces-[^/]*jar$")) {
                continue;
            }
            lc.addFile(list[i]);
        }
        return new RootLoader(lc);
    }
View Full Code Here

Examples of org.codehaus.groovy.tools.LoaderConfiguration

        project.addReference(name,loader);
    }
   
    private RootLoader makeRoot() {
        String[] list = taskClasspath.list();
        LoaderConfiguration lc = new LoaderConfiguration();
        for (int i=0; i<list.length; i++) {
            if (list[i].matches(".*ant-[^/]*jar$")) {
                continue;
            }
            if (list[i].matches(".*commons-logging-[^/]*jar$")) {
                continue;
            }
            if (list[i].matches(".*xerces-[^/]*jar$")) {
                continue;
            }
            lc.addFile(list[i]);
        }
        return new RootLoader(lc);
    }
View Full Code Here

Examples of org.codehaus.groovy.tools.LoaderConfiguration

        project.addReference(name,loader);
    }
   
    private RootLoader makeRoot() {
        String[] list = taskClasspath.list();
        LoaderConfiguration lc = new LoaderConfiguration();
        for (int i=0; i<list.length; i++) {
            if (list[i].matches(".*ant-[^/]*jar$")) {
                continue;
            }
            if (list[i].matches(".*commons-logging-[^/]*jar$")) {
                continue;
            }
            if (list[i].matches(".*xerces-[^/]*jar$")) {
                continue;
            }
            lc.addFile(list[i]);
        }
        return new RootLoader(lc);
    }
View Full Code Here

Examples of org.codehaus.groovy.tools.LoaderConfiguration

        project.addReference(name,loader);
    }
   
    private RootLoader makeRoot() {
        String[] list = taskClasspath.list();
        LoaderConfiguration lc = new LoaderConfiguration();
        for (int i=0; i<list.length; i++) {
            if (list[i].matches(".*ant-[^/]*jar$")) {
                continue;
            }
            if (list[i].matches(".*commons-logging-[^/]*jar$")) {
                continue;
            }
            if (list[i].matches(".*xerces-[^/]*jar$")) {
                continue;
            }
            lc.addFile(list[i]);
        }
        return new RootLoader(lc);
    }
View Full Code Here

Examples of org.infinispan.configuration.cache.LoaderConfiguration

      CacheStore cs = getCacheStore();
      if (cs != null) {
         if ((cs instanceof ChainingCacheStore) && !force) {
            ((ChainingCacheStore) loader).purgeIfNecessary();
         } else {
            LoaderConfiguration first = clmConfig.cacheLoaders().get(0);
            if (force || (first != null && first instanceof StoreConfiguration && ((StoreConfiguration)first).purgeOnStartup())) {
               cs.clear();
            }
         }
      }
View Full Code Here

Examples of org.infinispan.configuration.cache.LoaderConfiguration

            CacheLoader l = createCacheLoader(LegacyConfigurationAdaptor.adapt(cfg), cache);
            ccl.addCacheLoader(l, cfg);
         }
      } else {
         if (!clmConfig.cacheLoaders().isEmpty()) {
            LoaderConfiguration cfg = clmConfig.cacheLoaders().get(0);
            if (cfg instanceof StoreConfiguration)
               assertNotSingletonAndShared((StoreConfiguration) cfg);
            tmpLoader = createCacheLoader(LegacyConfigurationAdaptor.adapt(cfg), cache);
         } else {
            return null;
View Full Code Here

Examples of org.infinispan.configuration.cache.LoaderConfiguration

      CacheStore cs = getCacheStore();
      if (cs != null) {
         if ((cs instanceof ChainingCacheStore) && !force) {
            ((ChainingCacheStore) loader).purgeIfNecessary();
         } else {
            LoaderConfiguration first = clmConfig.cacheLoaders().get(0);
            if (force || (first != null && first instanceof StoreConfiguration && ((StoreConfiguration)first).purgeOnStartup())) {
               cs.clear();
            }
         }
      }
View Full Code Here

Examples of org.infinispan.configuration.cache.LoaderConfiguration

            CacheLoader l = createCacheLoader(LegacyConfigurationAdaptor.adapt(cfg), cache);
            ccl.addCacheLoader(l, cfg);
         }
      } else {
         if (!clmConfig.cacheLoaders().isEmpty()) {
            LoaderConfiguration cfg = clmConfig.cacheLoaders().get(0);
            if (cfg instanceof StoreConfiguration)
               assertNotSingletonAndShared((StoreConfiguration) cfg);
            tmpLoader = createCacheLoader(LegacyConfigurationAdaptor.adapt(cfg), cache);
         } else {
            return null;
View Full Code Here

Examples of org.infinispan.configuration.cache.LoaderConfiguration

      CacheStore cs = getCacheStore();
      if (cs != null) {
         if ((cs instanceof ChainingCacheStore) && !force) {
            ((ChainingCacheStore) loader).purgeIfNecessary();
         } else {
            LoaderConfiguration first = clmConfig.cacheLoaders().get(0);
            if (force || (first != null && first instanceof StoreConfiguration && ((StoreConfiguration)first).purgeOnStartup())) {
               cs.clear();
            }
         }
      }
View Full Code Here

Examples of org.infinispan.configuration.cache.LoaderConfiguration

            CacheLoader l = createCacheLoader(LegacyConfigurationAdaptor.adapt(cfg), cache);
            ccl.addCacheLoader(l, cfg);
         }
      } else {
         if (!clmConfig.cacheLoaders().isEmpty()) {
            LoaderConfiguration cfg = clmConfig.cacheLoaders().get(0);
            if (cfg instanceof StoreConfiguration)
               assertNotSingletonAndShared((StoreConfiguration) cfg);
            tmpLoader = createCacheLoader(LegacyConfigurationAdaptor.adapt(cfg), cache);
         } else {
            return null;
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.