|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectit.jnrpe.utils.PluginRepositoryUtil
public final class PluginRepositoryUtil
An utility class that allows to define the plugin repository in an XML file instead that using Java Code.
| Method Summary | |
|---|---|
static PluginDefinition |
loadFromPluginAnnotation(Class clazz)
Parse a plugin from class annotations. |
static Collection<PluginDefinition> |
loadFromXmlPluginPackageDefinitions(ClassLoader cl,
InputStream in)
Loads the plugins definitions from the jnrpe_plugins.xml file. |
static void |
loadFromXmlPluginPackageDefinitions(PluginRepository repo,
ClassLoader cl,
InputStream in)
Loads a full repository definition from an XML file. |
static PluginDefinition |
parseXmlPluginDefinition(ClassLoader cl,
InputStream in)
Loads the definition of a single plugin from an XML file. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static void loadFromXmlPluginPackageDefinitions(PluginRepository repo,
ClassLoader cl,
InputStream in)
throws PluginConfigurationException
repo - The repository that must be loadedcl - The classloader to be used to instantiate the plugin classesin - The stream to the XML file
PluginConfigurationException - -
public static Collection<PluginDefinition> loadFromXmlPluginPackageDefinitions(ClassLoader cl,
InputStream in)
throws PluginConfigurationException
cl - Classloader to be used to load classesin - InputStream to the jnrpe_plugins.xml file
PluginConfigurationException - on any error reading the plugin configuration
public static PluginDefinition parseXmlPluginDefinition(ClassLoader cl,
InputStream in)
throws PluginConfigurationException
cl - The classloader to be used to instantiate the plugin classin - The stream to the XML file
PluginConfigurationException - -public static PluginDefinition loadFromPluginAnnotation(Class clazz)
clazz - the plugin class
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||