|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectweka.gui.beans.PluginManager
public class PluginManager
Class that manages a global map of plugins. The knowledge flow uses this to manage plugins other than step components and perspectives. Is general purpose, so can be used by other Weka components. Provides static methods for registering and instantiating plugins.
| Constructor Summary | |
|---|---|
PluginManager()
|
|
| Method Summary | |
|---|---|
static void |
addPlugin(String interfaceName,
String name,
String concreteType)
Add a plugin. |
static Object |
getPluginInstance(String interfaceType,
String name)
Get an instance of a concrete implementation of a plugin type |
static Set<String> |
getPluginNamesOfType(String interfaceName)
Get a set of names of plugins that implement the supplied interface. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public PluginManager()
| Method Detail |
|---|
public static Set<String> getPluginNamesOfType(String interfaceName)
interfaceName - the fully qualified name of the interface to list
plugins for
public static void addPlugin(String interfaceName,
String name,
String concreteType)
interfaceName - the fully qualified interface name that the
plugin implementsname - the name/short description of the pluginconcreteType - the fully qualified class name of the actual
concrete implementation
public static Object getPluginInstance(String interfaceType,
String name)
throws Exception
interfaceType - the fully qualified interface name of the
plugin typename - the name/short description of the plugin to get
Exception - if the plugin can't be found or instantiated
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||