mirror of https://github.com/apache/lucene.git
SOLR-1930: remove some CoreContainer deprecations
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1054157 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
2bf47f6bc7
commit
ffef43df4f
|
@ -78,8 +78,6 @@ public class CoreContainer
|
|||
protected String adminHandler;
|
||||
protected boolean shareSchema;
|
||||
protected String solrHome;
|
||||
@Deprecated
|
||||
protected String solrConfigFilenameOverride;
|
||||
protected String defaultCoreName = "";
|
||||
private ZkController zkController;
|
||||
private SolrZkServer zkServer;
|
||||
|
@ -219,15 +217,6 @@ public class CoreContainer
|
|||
"Setting abortOnConfigurationError==false is no longer supported");
|
||||
}
|
||||
|
||||
public String getSolrConfigFilename() {
|
||||
return solrConfigFilename;
|
||||
}
|
||||
|
||||
@Deprecated
|
||||
public void setSolrConfigFilename(String solrConfigFilename) {
|
||||
this.solrConfigFilename = solrConfigFilename;
|
||||
}
|
||||
|
||||
// core container instantiation
|
||||
public CoreContainer initialize() throws IOException,
|
||||
ParserConfigurationException, SAXException {
|
||||
|
@ -379,9 +368,7 @@ public class CoreContainer
|
|||
// deal with optional settings
|
||||
String opt = DOMUtil.getAttr(node, "config", null);
|
||||
|
||||
if(solrConfigFilenameOverride != null) {
|
||||
p.setConfigName(solrConfigFilenameOverride);
|
||||
} else if (opt != null) {
|
||||
if (opt != null) {
|
||||
p.setConfigName(opt);
|
||||
}
|
||||
opt = DOMUtil.getAttr(node, "schema", null);
|
||||
|
|
|
@ -81,7 +81,6 @@ public class SolrDispatchFilter implements Filter
|
|||
try {
|
||||
// web.xml configuration
|
||||
this.pathPrefix = config.getInitParameter( "path-prefix" );
|
||||
init.setSolrConfigFilename(config.getInitParameter("solrconfig-filename"));
|
||||
|
||||
this.cores = init.initialize();
|
||||
abortOnConfigurationError = init.isAbortOnConfigurationError();
|
||||
|
|
Loading…
Reference in New Issue