SOLR-1431 ShardHandler can be SolrCoreAware, SearchHandler should implement PluginInfoInitialized

git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1142976 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Noble Paul 2011-07-05 10:48:06 +00:00
parent a338c7b309
commit 868ca9c554
2 changed files with 5 additions and 2 deletions

View File

@ -30,6 +30,7 @@ import java.net.URLClassLoader;
import java.util.*;
import java.util.concurrent.ConcurrentHashMap;
import org.apache.solr.handler.component.ShardHandlerFactory;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
@ -653,7 +654,8 @@ public class SolrResourceLoader implements ResourceLoader
SolrRequestHandler.class,
QueryResponseWriter.class,
SearchComponent.class,
UpdateRequestProcessorFactory.class
UpdateRequestProcessorFactory.class,
ShardHandlerFactory.class
}
);

View File

@ -29,6 +29,7 @@ import org.apache.solr.handler.RequestHandlerBase;
import org.apache.solr.request.SolrQueryRequest;
import org.apache.solr.response.SolrQueryResponse;
import org.apache.solr.util.SolrPluginUtils;
import org.apache.solr.util.plugin.PluginInfoInitialized;
import org.apache.solr.util.plugin.SolrCoreAware;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
@ -40,7 +41,7 @@ import java.util.*;
* Refer SOLR-281
*
*/
public class SearchHandler extends RequestHandlerBase implements SolrCoreAware
public class SearchHandler extends RequestHandlerBase implements SolrCoreAware , PluginInfoInitialized
{
static final String INIT_COMPONENTS = "components";
static final String INIT_FIRST_COMPONENTS = "first-components";