com.scooterframework.admin
Class PluginManager

java.lang.Object
  extended by com.scooterframework.admin.PluginManager

public class PluginManager
extends java.lang.Object

PluginManager class manages all plugins.


Method Summary
static PluginManager getInstance()
          Returns an instance of PluginManager.
 Plugin getPlugin(java.lang.String pluginName)
          Returns an instance of plugin related to the plugin name.
 java.util.Set<java.lang.String> getPluginNames()
          Returns plugin names
 java.util.Properties getPluginProperties(java.lang.String pluginName)
          Returns properties of the plugin.
 void registerPlugin(java.lang.String pluginName, java.util.Properties p)
          Registers a plugin.
 void removePlugins()
          Removes all plugins.
 void startPlugins()
          Starts all plugins.
 void stopPlugins()
          Stops all plugins.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getInstance

public static PluginManager getInstance()
Returns an instance of PluginManager.


registerPlugin

public void registerPlugin(java.lang.String pluginName,
                           java.util.Properties p)
Registers a plugin.

Parameters:
pluginName - plugin name
p - properties of the plugin

getPluginNames

public java.util.Set<java.lang.String> getPluginNames()
Returns plugin names


getPluginProperties

public java.util.Properties getPluginProperties(java.lang.String pluginName)
Returns properties of the plugin.

Parameters:
pluginName - plugin name
Returns:
Properties

getPlugin

public Plugin getPlugin(java.lang.String pluginName)
Returns an instance of plugin related to the plugin name.

Parameters:
pluginName - plugin name
Returns:
an instance of plugin

startPlugins

public void startPlugins()
Starts all plugins.


stopPlugins

public void stopPlugins()
Stops all plugins.


removePlugins

public void removePlugins()
Removes all plugins.