public final class PluginRepository extends Object
| Modifier and Type | Method and Description |
|---|---|
void |
addPlugin(String name,
MoskitoPlugin plugin,
PluginConfig config)
Adds a new loaded plugin.
|
PluginConfig |
getConfig(String name)
Returns pluginconfig for the loaded plugin.
|
static PluginRepository |
getInstance()
Returns plugin repository singleton instance.
|
MoskitoPlugin |
getPlugin(String name)
Returns loaded plugin by name.
|
List<String> |
getPluginNames()
Returns the names of the active plugins.
|
List<MoskitoPlugin> |
getPlugins()
Returns all active plugins.
|
void |
removePlugin(String name)
Removes a plugin.
|
public static PluginRepository getInstance()
public void addPlugin(String name, MoskitoPlugin plugin, PluginConfig config)
name - name of the plugin for ui.plugin - the plugin instance.config - plugin config which was used to load the plugin.public void removePlugin(String name)
name - name of the plugin.public List<String> getPluginNames()
public List<MoskitoPlugin> getPlugins()
public MoskitoPlugin getPlugin(String name)
name - name of the plugin.public PluginConfig getConfig(String name)
name - nane of the plugin.Copyright © 2010-2017 anotheria.net. All Rights Reserved.