it.jnrpe.plugins
Class PluginRepository

java.lang.Object
  extended by it.jnrpe.plugins.PluginRepository

public class PluginRepository
extends Object

This class represent the repository of all the installed plugins.

Author:
Massimiliano Ziccardi

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 sName)
          Returns an instance of the plugin declared inside the plugin definition.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PluginRepository

public PluginRepository()
Method Detail

addPluginDefinition

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

Parameters:
pluginDef - The plugin definition to be added.

getPlugin

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

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

getAllPlugins

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

Returns:
The collection of plugin definitions.


Copyright © 2013. All Rights Reserved.