Package org.pentaho.di.ui.spoon
Class SpoonPluginManager
java.lang.Object
org.pentaho.di.ui.spoon.SpoonPluginManager
- All Implemented Interfaces:
org.pentaho.di.core.plugins.PluginTypeListener
public class SpoonPluginManager
extends Object
implements org.pentaho.di.core.plugins.PluginTypeListener
SpoonPluginManager is a singleton class which loads all SpoonPlugins from the SPOON_HOME/plugins/spoon directory.
Spoon Plugins are able to listen for SpoonLifeCycleEvents and can register categorized XUL Overlays to be retrieved
later.
Spoon Plugins are deployed as directories under the SPOON_HOME/plugins/spoon directory. Each plugin must provide a
build.xml as the root of it's directory and have any required jars under a "lib" directory.
The plugin.xml format is Spring-based e.g. <beans xmlns="http://www.springframework.org/schema/beans"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation=
"http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-4.1.xsd">
- Author:
- nbaker
-
Method Summary
Modifier and TypeMethodDescriptionvoid
applyPluginsForContainer
(String category, org.pentaho.ui.xul.XulDomContainer container) static SpoonPluginManager
Return the single instance of this classReturns an unmodifiable list of all Spoon Plugins.void
Notifies all registered SpoonLifecycleListeners of the given SpoonLifeCycleEvent.void
pluginAdded
(Object serviceObject) void
pluginChanged
(Object serviceObject) void
pluginRemoved
(Object serviceObject)
-
Method Details
-
pluginAdded
- Specified by:
pluginAdded
in interfaceorg.pentaho.di.core.plugins.PluginTypeListener
-
pluginRemoved
- Specified by:
pluginRemoved
in interfaceorg.pentaho.di.core.plugins.PluginTypeListener
-
pluginChanged
- Specified by:
pluginChanged
in interfaceorg.pentaho.di.core.plugins.PluginTypeListener
-
getInstance
Return the single instance of this class- Returns:
- SpoonPerspectiveManager
-
applyPluginsForContainer
public void applyPluginsForContainer(String category, org.pentaho.ui.xul.XulDomContainer container) throws org.pentaho.ui.xul.XulException - Throws:
org.pentaho.ui.xul.XulException
-
getPlugins
Returns an unmodifiable list of all Spoon Plugins.- Returns:
- list of plugins
-
notifyLifecycleListeners
Notifies all registered SpoonLifecycleListeners of the given SpoonLifeCycleEvent.- Parameters:
evt
- event to notify listeners about
-