Method LookupAnalysisClass
LookupAnalysisClass(String, Type)
This method looks up a class with its fully qualified name (FQN), or a short-name class-simplename, or with a package suffix, assuming "Lucene.Net.Analysis." as the namespace prefix (e.g. "standard.ClassicTokenizerFactory" -> "Lucene.Net.Analysis.Standard.ClassicTokenizerFactory").
Declaration
public virtual Type LookupAnalysisClass(string className, Type expectedType)
Parameters
Type | Name | Description |
---|---|---|
System.String | className | The namespace qualified name or the short name of the class. |
Type | expectedType | The superclass |
Returns
Type | Description |
---|---|
Type | The loaded type. |
Remarks
If className
contains a period, the class is first looked up as-is, assuming that it
is an FQN. If this fails, lookup is retried after prepending the Lucene analysis
package prefix to the class name.
If className
does not contain a period, the analysis SPI *Factory.LookupClass()
methods are used to find the class.