|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectit.jnrpe.plugins.PluginRepository
public class PluginRepository
This class represent the repository of all the installed plugins.
Constructor Summary | |
---|---|
PluginRepository()
|
Method Summary | |
---|---|
void |
addPluginDefinition(PluginDefinition pluginDef)
Adds a plugin definition to this repository. |
Collection<PluginDefinition> |
getAllPlugins()
Returns all the plugin definitions managed by this repository. |
IPluginInterface |
getPlugin(String name)
Returns the implementation of the plugin identified by the given name. |
void |
removePluginDefinition(PluginDefinition pluginDef)
Removes a plugin definition from the repository. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public PluginRepository()
Method Detail |
---|
public final void addPluginDefinition(PluginDefinition pluginDef)
addPluginDefinition
in interface IPluginRepository
pluginDef
- The plugin definition to be added.public final void removePluginDefinition(PluginDefinition pluginDef)
removePluginDefinition
in interface IPluginRepository
pluginDef
- The plugin to be removedpublic final IPluginInterface getPlugin(String name) throws UnknownPluginException
getPlugin
in interface IPluginRepository
name
- The plugin name
UnknownPluginException
- if no plugin with the given name exists.public final Collection<PluginDefinition> getAllPlugins()
IPluginRepository
getAllPlugins
in interface IPluginRepository
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |