org.jmonit.spi
Interface PluginManager

All Known Implementing Classes:
DefaultPluginManager

public interface PluginManager

The plugins manager maintain a set of factories to create plugins on-demand for monitors. New plugins factories can be registered when application is running, to enable some fine tweak of application monitoring by simply deploying new plugins to existing monitors.

Author:
Nicolas De Loof

Method Summary
<T> Factory<T>
getFactory(java.lang.Class<T> feature)
           
 java.lang.Class getFeature(java.lang.String name)
          Retrieve a feature by name.
 java.util.Collection<java.lang.Class> getFeatures(java.lang.String group)
           
 void registerPlugin(Factory factory, java.lang.Class role)
          Register a plugin factory
 

Method Detail

registerPlugin

void registerPlugin(Factory factory,
                    java.lang.Class role)
Register a plugin factory

Type Parameters:
F - the feature that the plugin will provide
Parameters:
factory - the factory
role - TODO

getFeatures

java.util.Collection<java.lang.Class> getFeatures(java.lang.String group)
Parameters:
group - a name for a group of features
Returns:
all features in the group

getFactory

<T> Factory<T> getFactory(java.lang.Class<T> feature)

getFeature

java.lang.Class getFeature(java.lang.String name)
Retrieve a feature by name. The name can be a short name (simple class name) of a standard jMonit plugin (from org.jmonit.plugins package) or a fully qualified class name for custom plugins.

Parameters:
name -
Returns:
plublic API class for the feature


Copyright © 2007 Nicolas De Loof. All Rights Reserved.