public class FactoryResolver extends Object
URLElement and
QueryElement instances capable of processing the corresponding URL and query elements.
The specific classes belonging to the chain of responsibility are specified in the factory parameter
Note that the implementation of classes implementing functionality of a specific OpenSearch extension is not a necessary
condition for the operation of the library's core logic. However, the correct interpretation of extension-related parameters
and elements will be facilitated if all classes needed to implement the functionality of all extensions used are implemented.| Modifier and Type | Method and Description |
|---|---|
static FactoryPair |
getFactories() |
static void |
initialize(Collection<String> queryNamespaces,
Map<String,FactoryClassNamePair> factories) |
public static void initialize(Collection<String> queryNamespaces, Map<String,FactoryClassNamePair> factories)
queryNamespaces - A list of all namespaces present in an OpenSearch query, including both the standard namespace and the namespaces of each extension, if presentfactories - The mapping from namespace URIs to FactoryClassNamePair entries, which will be used to construct the factories using reflectionpublic static FactoryPair getFactories() throws Exception
FactoryPair of URL and Query element factoriesException - If the base-type factory class implementing standard OpenSearch functionality is not specified or the constructor of a factory class does
not conform to the convention used for reflection-based instance creation (i.e. it does not specify a single constructor with a single factory parameter)Copyright © 2014. All Rights Reserved.