public class PluginManager extends Object
| Constructor and Description |
|---|
PluginManager() |
| Modifier and Type | Method and Description |
|---|---|
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.
|
public static Set<String> getPluginNamesOfType(String interfaceName)
interfaceName - the fully qualified name of the interface to list
plugins forpublic 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 implementationpublic 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 getException - if the plugin can't be found or instantiatedCopyright © 2012 University of Waikato, Hamilton, NZ. All Rights Reserved.