Class PlatformPlugin
- java.lang.Object
-
- org.pentaho.platform.plugin.services.pluginmgr.PlatformPlugin
-
- All Implemented Interfaces:
org.pentaho.platform.api.engine.IPentahoInitializer
,org.pentaho.platform.api.engine.IPlatformPlugin
,org.pentaho.platform.api.engine.IPluginLifecycleListener
public class PlatformPlugin extends Object implements org.pentaho.platform.api.engine.IPlatformPlugin, org.pentaho.platform.api.engine.IPentahoInitializer
Default bean implementation ofIPlatformPlugin
-
-
Constructor Summary
Constructors Constructor Description PlatformPlugin()
PlatformPlugin(org.springframework.beans.factory.support.DefaultListableBeanFactory defaultListableBeanFactory)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addBean(org.pentaho.platform.api.engine.PluginBeanDefinition beanDefinition)
void
addContentGenerator(org.pentaho.platform.api.engine.IContentGeneratorInfo contentGenerator)
Adds a content generator to this plug-invoid
addContentInfo(org.pentaho.platform.api.engine.IContentInfo contentInfo)
Adds a content info type to this plug-invoid
addExternalResource(String context, String resource)
void
addInitializer(org.pentaho.platform.api.engine.IPentahoInitializer initializer)
Adds an initializer to this plug-invoid
addLifecycleListener(org.pentaho.platform.api.engine.IPluginLifecycleListener listener)
void
addOverlay(org.pentaho.ui.xul.XulOverlay overlay)
Adds an overlay to this plug-invoid
addPluginPerspective(org.pentaho.platform.api.engine.perspective.pojo.IPluginPerspective perspective)
void
addStaticResourcePath(String url, String localFolder)
void
addWebservice(org.pentaho.platform.api.engine.PluginServiceDefinition serviceDefinition)
org.springframework.beans.factory.support.DefaultListableBeanFactory
getBeanFactory()
Collection<org.pentaho.platform.api.engine.PluginBeanDefinition>
getBeans()
List<org.pentaho.platform.api.engine.IContentGeneratorInfo>
getContentGenerators()
List<org.pentaho.platform.api.engine.IContentInfo>
getContentInfos()
List<String>
getExternalResourcesForContext(String context)
String
getId()
String
getLifecycleListenerClassname()
org.pentaho.platform.api.engine.IPlatformPlugin.ClassLoaderType
getLoaderType()
Map<String,String>
getMetaProviderMap()
List<org.pentaho.ui.xul.XulOverlay>
getOverlays()
List<org.pentaho.platform.api.engine.perspective.pojo.IPluginPerspective>
getPluginPerspectives()
Collection<org.pentaho.platform.api.engine.PluginServiceDefinition>
getServices()
String
getSourceDescription()
Map<String,String>
getStaticResourceMap()
void
init()
void
init(org.pentaho.platform.api.engine.IPentahoSession session)
void
loaded()
void
setId(String id)
Sets the unique id for this plug-invoid
setLifecycleListenerClassname(String lifecycleListenerClassname)
void
setLoadertype(org.pentaho.platform.api.engine.IPlatformPlugin.ClassLoaderType loaderType)
void
setSourceDescription(String sourceDescription)
void
unLoaded()
-
-
-
Method Detail
-
init
public void init(org.pentaho.platform.api.engine.IPentahoSession session)
- Specified by:
init
in interfaceorg.pentaho.platform.api.engine.IPentahoInitializer
-
getLifecycleListenerClassname
public String getLifecycleListenerClassname()
- Specified by:
getLifecycleListenerClassname
in interfaceorg.pentaho.platform.api.engine.IPlatformPlugin
-
setLifecycleListenerClassname
public void setLifecycleListenerClassname(String lifecycleListenerClassname)
-
getContentGenerators
public List<org.pentaho.platform.api.engine.IContentGeneratorInfo> getContentGenerators()
- Specified by:
getContentGenerators
in interfaceorg.pentaho.platform.api.engine.IPlatformPlugin
-
getContentInfos
public List<org.pentaho.platform.api.engine.IContentInfo> getContentInfos()
- Specified by:
getContentInfos
in interfaceorg.pentaho.platform.api.engine.IPlatformPlugin
-
getId
public String getId()
- Specified by:
getId
in interfaceorg.pentaho.platform.api.engine.IPlatformPlugin
-
getOverlays
public List<org.pentaho.ui.xul.XulOverlay> getOverlays()
- Specified by:
getOverlays
in interfaceorg.pentaho.platform.api.engine.IPlatformPlugin
-
getPluginPerspectives
public List<org.pentaho.platform.api.engine.perspective.pojo.IPluginPerspective> getPluginPerspectives()
- Specified by:
getPluginPerspectives
in interfaceorg.pentaho.platform.api.engine.IPlatformPlugin
-
setId
public void setId(String id)
Sets the unique id for this plug-in- Parameters:
id
-
-
addInitializer
public void addInitializer(org.pentaho.platform.api.engine.IPentahoInitializer initializer)
Adds an initializer to this plug-in- Parameters:
initializer
-
-
addContentGenerator
public void addContentGenerator(org.pentaho.platform.api.engine.IContentGeneratorInfo contentGenerator)
Adds a content generator to this plug-in- Parameters:
contentGenerator
-
-
addContentInfo
public void addContentInfo(org.pentaho.platform.api.engine.IContentInfo contentInfo)
Adds a content info type to this plug-in- Parameters:
contentInfo
-
-
addOverlay
public void addOverlay(org.pentaho.ui.xul.XulOverlay overlay)
Adds an overlay to this plug-in- Parameters:
overlay
-
-
getSourceDescription
public String getSourceDescription()
- Specified by:
getSourceDescription
in interfaceorg.pentaho.platform.api.engine.IPlatformPlugin
-
setSourceDescription
public void setSourceDescription(String sourceDescription)
-
getStaticResourceMap
public Map<String,String> getStaticResourceMap()
- Specified by:
getStaticResourceMap
in interfaceorg.pentaho.platform.api.engine.IPlatformPlugin
-
getBeans
public Collection<org.pentaho.platform.api.engine.PluginBeanDefinition> getBeans()
- Specified by:
getBeans
in interfaceorg.pentaho.platform.api.engine.IPlatformPlugin
-
getBeanFactory
public org.springframework.beans.factory.support.DefaultListableBeanFactory getBeanFactory()
- Specified by:
getBeanFactory
in interfaceorg.pentaho.platform.api.engine.IPlatformPlugin
-
getServices
public Collection<org.pentaho.platform.api.engine.PluginServiceDefinition> getServices()
- Specified by:
getServices
in interfaceorg.pentaho.platform.api.engine.IPlatformPlugin
-
addBean
public void addBean(org.pentaho.platform.api.engine.PluginBeanDefinition beanDefinition)
-
addWebservice
public void addWebservice(org.pentaho.platform.api.engine.PluginServiceDefinition serviceDefinition)
-
init
public void init() throws org.pentaho.platform.api.engine.PluginLifecycleException
- Specified by:
init
in interfaceorg.pentaho.platform.api.engine.IPlatformPlugin
- Specified by:
init
in interfaceorg.pentaho.platform.api.engine.IPluginLifecycleListener
- Throws:
org.pentaho.platform.api.engine.PluginLifecycleException
-
loaded
public void loaded() throws org.pentaho.platform.api.engine.PluginLifecycleException
- Specified by:
loaded
in interfaceorg.pentaho.platform.api.engine.IPlatformPlugin
- Specified by:
loaded
in interfaceorg.pentaho.platform.api.engine.IPluginLifecycleListener
- Throws:
org.pentaho.platform.api.engine.PluginLifecycleException
-
unLoaded
public void unLoaded() throws org.pentaho.platform.api.engine.PluginLifecycleException
- Specified by:
unLoaded
in interfaceorg.pentaho.platform.api.engine.IPlatformPlugin
- Specified by:
unLoaded
in interfaceorg.pentaho.platform.api.engine.IPluginLifecycleListener
- Throws:
org.pentaho.platform.api.engine.PluginLifecycleException
-
addLifecycleListener
public void addLifecycleListener(org.pentaho.platform.api.engine.IPluginLifecycleListener listener)
- Specified by:
addLifecycleListener
in interfaceorg.pentaho.platform.api.engine.IPlatformPlugin
-
getMetaProviderMap
public Map<String,String> getMetaProviderMap()
- Specified by:
getMetaProviderMap
in interfaceorg.pentaho.platform.api.engine.IPlatformPlugin
-
getLoaderType
public org.pentaho.platform.api.engine.IPlatformPlugin.ClassLoaderType getLoaderType()
- Specified by:
getLoaderType
in interfaceorg.pentaho.platform.api.engine.IPlatformPlugin
-
setLoadertype
public void setLoadertype(org.pentaho.platform.api.engine.IPlatformPlugin.ClassLoaderType loaderType)
-
getExternalResourcesForContext
public List<String> getExternalResourcesForContext(String context)
- Specified by:
getExternalResourcesForContext
in interfaceorg.pentaho.platform.api.engine.IPlatformPlugin
-
addPluginPerspective
public void addPluginPerspective(org.pentaho.platform.api.engine.perspective.pojo.IPluginPerspective perspective)
-
-