Example usage for org.apache.solr.core SolrResourceLoader inform

List of usage examples for org.apache.solr.core SolrResourceLoader inform

Introduction

In this page you can find the example usage for org.apache.solr.core SolrResourceLoader inform.

Prototype

public void inform(Map<String, SolrInfoBean> infoRegistry) 

Source Link

Document

Register any SolrInfoBean s

Usage

From source file:org.sindice.siren.solr.schema.SirenDatatypeAnalyzerConfig.java

License:Open Source License

/**
 * Constructs a config using the specified resource name and stream.
 * If the is stream is null, the resource loader will load the resource
 * by name.//from  www  .j a va  2  s .c  o  m
 * @see SolrResourceLoader#openConfig
 * By default, this follows the normal config path directory searching rules.
 * @see SolrResourceLoader#openResource
 */
public SirenDatatypeAnalyzerConfig(final SolrResourceLoader loader, final String name, InputSource is,
        final Version luceneMatchVersion) {
    this.luceneMatchVersion = luceneMatchVersion;
    this.resourceName = name;
    this.loader = loader;

    if (is == null) {
        is = new InputSource(loader.openConfig(name));
        is.setSystemId(SystemIdResolver.createSystemIdFromResourceName(name));
    }
    this.readConfig(is);
    loader.inform(loader);
}

From source file:org.sindice.siren.solr.schema.SirenTopLevelAnalyzerConfig.java

License:Open Source License

/**
 * Constructs a config using the specified resource name and stream.
 * If the stream is null, the resource loader will load the resource
 * by name./*from  w  ww.j  a v a 2 s .com*/
 * @see SolrResourceLoader#openConfig
 * By default, this follows the normal config path directory searching rules.
 * @see SolrResourceLoader#openResource
 */
public SirenTopLevelAnalyzerConfig(final SolrResourceLoader loader, final String name, InputSource is,
        final Version luceneMatchVersion) {
    this.luceneMatchVersion = luceneMatchVersion;
    this.resourceName = name;
    this.loader = loader;

    if (is == null) {
        is = new InputSource(loader.openConfig(name));
        is.setSystemId(SystemIdResolver.createSystemIdFromResourceName(name));
    }
    this.readConfig(is);
    loader.inform(loader);
}