it.jnrpe.plugins
Interface IPluginRepository

All Known Implementing Classes:
PluginRepository

public interface IPluginRepository

The interface that all the plugin repository classes must implement.

Author:
Massimiliano Ziccardi

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)
                           throws UnknownPluginException
Returns an instance of the plugin declared inside the plugin definition. identified by the passed name.

Parameters:
name - The name of the plugin to be instantiated.
Returns:
The plugin instance
Throws:
UnknownPluginException - if no plugins with the given name exists

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.