it.jnrpe.plugins
Interface IPluginRepository

All Known Implementing Classes:
PluginRepository

public interface IPluginRepository


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 an instance of the plugin declared inside the plugin definition.
 void removePluginDefinition(PluginDefinition pluginDef)
          Removes a plugin definition from the repository.
 

Method Detail

getPlugin

IPluginInterface getPlugin(String name)
Returns an instance of the plugin declared inside the plugin definition. identificated by the passed name.

Parameters:
name - The name of the plugin to be instantiated.
Returns:
The plugin instance

getAllPlugins

Collection<PluginDefinition> getAllPlugins()
Returns all the plugin definitions managed by this repository.

Returns:
The collection of plugin definitions.

addPluginDefinition

void addPluginDefinition(PluginDefinition pluginDef)
Adds a plugin definition to this repository.

Parameters:
pluginDef - The plugin definition to be added.

removePluginDefinition

void removePluginDefinition(PluginDefinition pluginDef)
Removes a plugin definition from the repository.

Parameters:
pluginDef - The plugin to be removed


Copyright © 2014. All Rights Reserved.