com.arsdigita.search
Class QueryEngineRegistry

java.lang.Object
  extended bycom.arsdigita.search.QueryEngineRegistry

public class QueryEngineRegistry
extends Object

Provides a registry of query engine implementations for various sets of filters. Application programmers do not need to access instances of this class directly, rather they should use the process method in the Search class.

See Also:
QueryEngine

Constructor Summary
QueryEngineRegistry()
           
 
Method Summary
static QueryEngine getEngine(String indexer, FilterType[] filters)
          Gets the search engine implementation capable of processing the specified set of filters on a given search indexer.
static void registerEngine(IndexerType indexer, FilterType[] filters, QueryEngine engine)
          Registers a new query engine implementation for an indexer capable of accepting a specific set of filter types.
static void registerEngine(String indexer, FilterType[] filters, QueryEngine engine)
          Registers a new query engine implementation for an indexer capable of accepting a specific set of filter types.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

QueryEngineRegistry

public QueryEngineRegistry()
Method Detail

registerEngine

public static void registerEngine(IndexerType indexer,
                                  FilterType[] filters,
                                  QueryEngine engine)
Registers a new query engine implementation for an indexer capable of accepting a specific set of filter types.

Parameters:
indexer - the search engine type
filters - the filter types supported
engine - the engine implementation

registerEngine

public static void registerEngine(String indexer,
                                  FilterType[] filters,
                                  QueryEngine engine)
Registers a new query engine implementation for an indexer capable of accepting a specific set of filter types.

Parameters:
indexer - the search engine type
filters - the filter types supported
engine - the engine implementation

getEngine

public static QueryEngine getEngine(String indexer,
                                    FilterType[] filters)
Gets the search engine implementation capable of processing the specified set of filters on a given search indexer.

Parameters:
indexer - the search engine type
filters - the filter types requested
Returns:
a search engine implementation, or null


Copyright (c) 2004 Red Hat, Inc. Corporation. All Rights Reserved. Generated at July 21 2004:2337 UTC