|
MaltParser 1.4.1 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.maltparser.core.plugin.PluginLoader
public class PluginLoader
Loads MaltParser plug-ins and makes new instances of classes within these plug-ins.
| Method Summary | |
|---|---|
Class<?> |
getClass(String classname)
Returns the Class object for the class with the specified name. |
static PluginLoader |
instance()
Returns a reference to the single instance. |
Iterator<Plugin> |
iterator()
|
void |
loadPlugins(File pluginDirectory)
Loads plug-ins from one directory |
void |
loadPlugins(File[] pluginDirectories)
Loads plug-ins from one or more directories |
Object |
newInstance(String classname,
Class<?>[] argTypes,
Object[] args)
Creates a new instance of a class within one of the plug-ins |
String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Method Detail |
|---|
public static PluginLoader instance()
public void loadPlugins(File pluginDirectory)
throws MaltChainedException
pluginDirectory - The directory that contains all plug-ins
MaltChainedException
public void loadPlugins(File[] pluginDirectories)
throws MaltChainedException
pluginDirectories - An array of directories that contains all plug-ins
MaltChainedExceptionpublic Class<?> getClass(String classname)
classname - the fully qualified name of the desired class
public Object newInstance(String classname,
Class<?>[] argTypes,
Object[] args)
throws MaltChainedException
classname - The fully qualified name of the desired classargTypes - An array of classes (fully qualified name) that specify the arguments to the constructorargs - An array of objects that will be the actual parameters to the constructor (the type should corresponds to the argTypes).
MaltChainedExceptionpublic Iterator<Plugin> iterator()
iterator in interface Iterable<Plugin>public String toString()
toString in class Object
|
MaltParser 1.4.1 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||