org.gcube.indexmanagement.common.linguistics.languageidplugin
Class LanguageIdFactory

java.lang.Object
  extended by org.gcube.indexmanagement.common.linguistics.languageidplugin.LanguageIdFactory

public class LanguageIdFactory
extends Object

This class loads the real implementation of the language id module.


Method Summary
static LanguageIdPlugin loadPlugin(String pluginName)
          This method loads the plugin for the language identifier and calls the init.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

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 © 2013. All Rights Reserved.