Examples of ResourceLoaderAware


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

    boolean success = false;
    try {
      factory.setLuceneMatchVersion(TEST_VERSION_CURRENT);
      factory.init(Collections.<String,String>emptyMap());
      if (factory instanceof ResourceLoaderAware) {
        ResourceLoaderAware resourceLoaderAware = (ResourceLoaderAware) factory;
          resourceLoaderAware.inform(new ClasspathResourceLoader(factory.getClass()));
      }
      success = true;
    } catch (IllegalArgumentException ignored) {
      // its ok if we dont provide the right parameters to throw this
    }
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.