|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.jivesoftware.spark.PluginManager
public class PluginManager
This manager is responsible for the loading of all Plugins and Workspaces within Spark environment.
Field Summary | |
---|---|
static java.io.File |
PLUGINS_DIRECTORY
The root Plugins Directory. |
Method Summary | |
---|---|
void |
addPlugin(PublicPlugin plugin)
Adds and installs a new plugin into Spark. |
static PluginManager |
getInstance()
Returns the singleton instance of PluginManager ,
creating it if necessary. |
Plugin |
getPlugin(java.lang.Class communicatorPlugin)
Returns the instance of the plugin class initialized during startup. |
java.lang.ClassLoader |
getPluginClassLoader()
Returns the plugin classloader. |
java.util.Collection |
getPlugins()
Returns a Collection of Plugins. |
java.util.List<PublicPlugin> |
getPublicPlugins()
Returns a collection of all public plugins. |
void |
initializePlugins()
Loads and initalizes all Plugins. |
boolean |
isInstalled(PublicPlugin plugin)
Returns true if the specified plugin is installed. |
void |
loadPlugins()
Loads all Plugin from the agent plugins.xml and extension lib. |
void |
mainWindowActivated()
Invoked by the MainWindow when it has been activated, such
as when it is coming out of a minimized state. |
void |
mainWindowDeactivated()
Invoked by the MainWindow when it has been minimized in the toolbar. |
void |
registerPlugin(Plugin plugin)
Registers a plugin. |
void |
removePlugin(Plugin plugin)
Removes a plugin from the plugin list. |
void |
removePublicPlugin(PublicPlugin plugin)
Removes and uninstall a plugin from Spark. |
void |
shutdown()
Invoked by the MainWindow when it is about the shutdown. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static java.io.File PLUGINS_DIRECTORY
Method Detail |
---|
public static PluginManager getInstance()
PluginManager
,
creating it if necessary.
PluginManager
public void loadPlugins()
Plugin
from the agent plugins.xml and extension lib.
public java.lang.ClassLoader getPluginClassLoader()
public void registerPlugin(Plugin plugin)
plugin
- the plugin to register.public void removePlugin(Plugin plugin)
plugin
- the plugin to remove.public java.util.Collection getPlugins()
public Plugin getPlugin(java.lang.Class communicatorPlugin)
communicatorPlugin
- the plugin to find.
public void initializePlugins()
Plugin
public void shutdown()
MainWindowListener
MainWindow
when it is about the shutdown.
When invoked, the MainWindowListener
should do anything necessary to persist their current state.
MainWindowListeners
authors should take care to ensure
that any extraneous processing is not performed on this method, as it would
cause a delay in the shutdown process.
shutdown
in interface MainWindowListener
MainWindow
public void mainWindowActivated()
MainWindowListener
MainWindow
when it has been activated, such
as when it is coming out of a minimized state.
When invoked, the MainWindowListener
should do anything necessary to smoothly transition back to the application.
mainWindowActivated
in interface MainWindowListener
MainWindow
public void mainWindowDeactivated()
MainWindowListener
MainWindow
when it has been minimized in the toolbar.
mainWindowDeactivated
in interface MainWindowListener
MainWindow
public void addPlugin(PublicPlugin plugin) throws java.lang.Exception
plugin
- the plugin to install.
java.lang.Exception
- thrown if there was a problem loading the plugin.public java.util.List<PublicPlugin> getPublicPlugins()
public void removePublicPlugin(PublicPlugin plugin)
plugin
- the plugin to uninstall.public boolean isInstalled(PublicPlugin plugin)
plugin
- the PublicPlugin
plugin to check.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |