Examples of ClasspathResourceLoader


Examples of org.apache.lucene.analysis.util.ClasspathResourceLoader

* so this won't break if stop filter test files change
**/
public class TestCommonGramsFilterFactory extends BaseTokenStreamTestCase {

  public void testInform() throws Exception {
    ResourceLoader loader = new ClasspathResourceLoader(TestStopFilter.class);
    assertTrue("loader is null and it shouldn't be", loader != null);
    CommonGramsFilterFactory factory = new CommonGramsFilterFactory();
    Map<String, String> args = new HashMap<String, String>();
    args.put("words", "stop-1.txt");
    args.put("ignoreCase", "true");
View Full Code Here

Examples of org.apache.lucene.analysis.util.ClasspathResourceLoader

 
  /**
   * If no words are provided, then a set of english default stopwords is used.
   */
  public void testDefaults() throws Exception {
    ResourceLoader loader = new ClasspathResourceLoader(TestStopFilter.class);
    assertTrue("loader is null and it shouldn't be", loader != null);
    CommonGramsFilterFactory factory = new CommonGramsFilterFactory();
    factory.setLuceneMatchVersion(TEST_VERSION_CURRENT);
    Map<String, String> args = Collections.emptyMap();
    factory.init(args);
View Full Code Here

Examples of org.apache.velocity.runtime.resource.loader.ClasspathResourceLoader

      velocityEngine = new VelocityEngine();
      //velocityEngine.setApplicationAttribute(VelocityEngine.RESOURCE_LOADER,
          //        new ClasspathResourceLoader());
      velocityEngine.setProperty("resource.loader", "error");
      velocityEngine.setProperty("error.resource.loader.instance",
          new ClasspathResourceLoader());
      velocityEngine.init(props);
    } catch (Exception e) {
      LOG.warn(e.getMessage());
    }
  }
View Full Code Here

Examples of org.impalaframework.spring.resource.ClassPathResourceLoader

        if (injectedLocationResourceLoaders != null) {
            return injectedLocationResourceLoaders;
        }
       
        Collection<ResourceLoader> resourceLoaders = new ArrayList<ResourceLoader>();
        resourceLoaders.add(new ClassPathResourceLoader());
        return resourceLoaders;
    }
View Full Code Here

Examples of org.impalaframework.spring.resource.ClassPathResourceLoader

  protected Collection<ResourceLoader> getSpringLocationResourceLoaders() {
   
    //TODO issue 25: wire this in
    Collection<ResourceLoader> resourceLoaders = new ArrayList<ResourceLoader>();
    resourceLoaders.add(new ClassPathResourceLoader());
    return resourceLoaders;
  }
View Full Code Here

Examples of org.impalaframework.spring.resource.ClassPathResourceLoader

        if (injectedLocationResourceLoaders != null) {
            return injectedLocationResourceLoaders;
        }
       
        Collection<ResourceLoader> resourceLoaders = new ArrayList<ResourceLoader>();
        resourceLoaders.add(new ClassPathResourceLoader());
        return resourceLoaders;
    }
View Full Code Here

Examples of org.impalaframework.spring.resource.ClassPathResourceLoader

        if (injectedLocationResourceLoaders != null) {
            return injectedLocationResourceLoaders;
        }
       
        Collection<ResourceLoader> resourceLoaders = new ArrayList<ResourceLoader>();
        resourceLoaders.add(new ClassPathResourceLoader());
        return resourceLoaders;
    }
View Full Code Here

Examples of org.impalaframework.spring.resource.ClassPathResourceLoader

    protected Collection<ResourceLoader> getSpringLocationResourceLoaders() {
       
        //TODO issue 25: wire this in
        Collection<ResourceLoader> resourceLoaders = new ArrayList<ResourceLoader>();
        resourceLoaders.add(new ClassPathResourceLoader());
        return resourceLoaders;
    }
View Full Code Here

Examples of org.impalaframework.spring.resource.ClassPathResourceLoader

    private ModuleLocationsResourceLoader loader;

    @Override
    protected void setUp() throws Exception {
        super.setUp();
        resourceLoader = new ClassPathResourceLoader();
        loader = new ModuleLocationsResourceLoader();
        loader.setResourceLoader(resourceLoader);
    }
View Full Code Here

Examples of org.impalaframework.spring.resource.ClassPathResourceLoader

  }

  protected Collection<ResourceLoader> getSpringLocationResourceLoaders() {
    //FIXME issue 25: wire this in
    Collection<ResourceLoader> resourceLoaders = new ArrayList<ResourceLoader>();
    resourceLoaders.add(new ClassPathResourceLoader());
    return resourceLoaders;
  }
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.