org.gcube.indexmanagement.common.linguistics.languageidplugin
Class LanguageIdFactory
java.lang.Object
org.gcube.indexmanagement.common.linguistics.languageidplugin.LanguageIdFactory
public class LanguageIdFactory
- extends Object
This class loads the real implementation of the language id module.
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
loadPlugin
public static LanguageIdPlugin loadPlugin(String pluginName)
throws IndexException
- This method loads the plugin for the language identifier and calls the init.
method with the configFile as a parameter.
- Parameters:
pluginName - The name of the plugin to be loaded.
The plugin must implement the interface LanguageIdPlugin
- Returns:
- The langid plugin that was instanciated
- Throws:
IndexException - The IndexException is thrown in case the class
can not be loaded or initialized.
Copyright © 2012. All Rights Reserved.