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 of
IPlatformPlugin-
Nested Class Summary
Nested classes/interfaces inherited from interface org.pentaho.platform.api.engine.IPlatformPlugin
org.pentaho.platform.api.engine.IPlatformPlugin.ClassLoaderType -
Constructor Summary
ConstructorsConstructorDescriptionPlatformPlugin(org.springframework.beans.factory.support.DefaultListableBeanFactory defaultListableBeanFactory) -
Method Summary
Modifier and TypeMethodDescriptionvoidaddBean(org.pentaho.platform.api.engine.PluginBeanDefinition beanDefinition) voidaddContentGenerator(org.pentaho.platform.api.engine.IContentGeneratorInfo contentGenerator) Adds a content generator to this plug-invoidaddContentInfo(org.pentaho.platform.api.engine.IContentInfo contentInfo) Adds a content info type to this plug-invoidaddExternalResource(String context, String resource) voidaddInitializer(org.pentaho.platform.api.engine.IPentahoInitializer initializer) Adds an initializer to this plug-invoidaddLifecycleListener(org.pentaho.platform.api.engine.IPluginLifecycleListener listener) voidaddLifecycleListenerClassname(String lifecycleListenerClassname) voidaddOverlay(org.pentaho.ui.xul.XulOverlay overlay) Adds an overlay to this plug-invoidaddPluginPerspective(org.pentaho.platform.api.engine.perspective.pojo.IPluginPerspective perspective) voidaddStaticResourcePath(String url, String localFolder) voidaddWebservice(org.pentaho.platform.api.engine.PluginServiceDefinition serviceDefinition) org.springframework.beans.factory.support.DefaultListableBeanFactoryCollection<org.pentaho.platform.api.engine.PluginBeanDefinition> getBeans()List<org.pentaho.platform.api.engine.IContentGeneratorInfo> List<org.pentaho.platform.api.engine.IContentInfo> getDescription(Locale locale) getExternalResourcesForContext(String context) getId()org.pentaho.platform.api.engine.IPlatformPlugin.ClassLoaderTypeList<org.pentaho.ui.xul.XulOverlay> List<org.pentaho.platform.api.engine.perspective.pojo.IPluginPerspective> Collection<org.pentaho.platform.api.engine.PluginServiceDefinition> voidinit()voidinit(org.pentaho.platform.api.engine.IPentahoSession session) voidloaded()protected StringlocalizeInterpolatedString(String value, Locale locale) Returns a localized string for the given key and locale.voidsetDescription(String description) Sets the description of this plugin.voidSets the unique id for this plug-invoidsetLifecycleListenerClassname(String lifecycleListenerClassnames) voidsetLoadertype(org.pentaho.platform.api.engine.IPlatformPlugin.ClassLoaderType loaderType) voidsetResourceBundleClassName(String className) Sets the fully qualified class name used as the resource bundle base name.voidsetResourceBundleProvider(org.pentaho.platform.api.locale.IResourceBundleProvider provider) voidsetSourceDescription(String sourceDescription) voidSets the title of this plugin.voidunLoaded()Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.pentaho.platform.api.engine.IPlatformPlugin
getDescription, getTitle
-
Constructor Details
-
PlatformPlugin
public PlatformPlugin() -
PlatformPlugin
public PlatformPlugin(org.springframework.beans.factory.support.DefaultListableBeanFactory defaultListableBeanFactory)
-
-
Method Details
-
init
public void init(org.pentaho.platform.api.engine.IPentahoSession session) - Specified by:
initin interfaceorg.pentaho.platform.api.engine.IPentahoInitializer
-
addLifecycleListenerClassname
-
setLifecycleListenerClassname
-
getLifecycleListenerClassnames
- Specified by:
getLifecycleListenerClassnamesin interfaceorg.pentaho.platform.api.engine.IPlatformPlugin
-
getContentGenerators
- Specified by:
getContentGeneratorsin interfaceorg.pentaho.platform.api.engine.IPlatformPlugin
-
getContentInfos
- Specified by:
getContentInfosin interfaceorg.pentaho.platform.api.engine.IPlatformPlugin
-
getId
- Specified by:
getIdin interfaceorg.pentaho.platform.api.engine.IPlatformPlugin
-
getTitle
- Specified by:
getTitlein interfaceorg.pentaho.platform.api.engine.IPlatformPlugin
-
setTitle
Sets the title of this plugin. It can be a default localized value or contain keys in the format "${resource-id}" for localization.- Parameters:
title- the title
-
getDescription
- Specified by:
getDescriptionin interfaceorg.pentaho.platform.api.engine.IPlatformPlugin
-
setDescription
Sets the description of this plugin. It can be a default localized value or contain keys in the format "${key}" for localization.- Parameters:
description- the description
-
localizeInterpolatedString
@Nullable protected String localizeInterpolatedString(@Nullable String value, @Nullable Locale locale) Returns a localized string for the given key and locale. If the key is not found or no resource bundle is found for the specified locale, then `value` is returned.- Parameters:
value- the value string to be localizedlocale- the locale to use for localization- Returns:
- the localized string or `value` if not found
-
getResourceBundleClassName
- Specified by:
getResourceBundleClassNamein interfaceorg.pentaho.platform.api.engine.IPlatformPlugin
-
setResourceBundleClassName
Sets the fully qualified class name used as the resource bundle base name.- Parameters:
className- the fully qualified class name
-
setResourceBundleProvider
public void setResourceBundleProvider(@Nullable org.pentaho.platform.api.locale.IResourceBundleProvider provider) - Specified by:
setResourceBundleProviderin interfaceorg.pentaho.platform.api.engine.IPlatformPlugin
-
getOverlays
- Specified by:
getOverlaysin interfaceorg.pentaho.platform.api.engine.IPlatformPlugin
-
getPluginPerspectives
public List<org.pentaho.platform.api.engine.perspective.pojo.IPluginPerspective> getPluginPerspectives()- Specified by:
getPluginPerspectivesin interfaceorg.pentaho.platform.api.engine.IPlatformPlugin
-
setId
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
- Specified by:
getSourceDescriptionin interfaceorg.pentaho.platform.api.engine.IPlatformPlugin
-
setSourceDescription
-
addStaticResourcePath
-
getStaticResourceMap
- Specified by:
getStaticResourceMapin interfaceorg.pentaho.platform.api.engine.IPlatformPlugin
-
getBeans
- Specified by:
getBeansin interfaceorg.pentaho.platform.api.engine.IPlatformPlugin
-
getBeanFactory
public org.springframework.beans.factory.support.DefaultListableBeanFactory getBeanFactory()- Specified by:
getBeanFactoryin interfaceorg.pentaho.platform.api.engine.IPlatformPlugin
-
getServices
- Specified by:
getServicesin 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:
initin interfaceorg.pentaho.platform.api.engine.IPlatformPlugin- Specified by:
initin 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:
loadedin interfaceorg.pentaho.platform.api.engine.IPlatformPlugin- Specified by:
loadedin 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:
unLoadedin interfaceorg.pentaho.platform.api.engine.IPlatformPlugin- Specified by:
unLoadedin 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:
addLifecycleListenerin interfaceorg.pentaho.platform.api.engine.IPlatformPlugin
-
getMetaProviderMap
- Specified by:
getMetaProviderMapin interfaceorg.pentaho.platform.api.engine.IPlatformPlugin
-
getLoaderType
public org.pentaho.platform.api.engine.IPlatformPlugin.ClassLoaderType getLoaderType()- Specified by:
getLoaderTypein interfaceorg.pentaho.platform.api.engine.IPlatformPlugin
-
setLoadertype
public void setLoadertype(org.pentaho.platform.api.engine.IPlatformPlugin.ClassLoaderType loaderType) -
addExternalResource
-
getExternalResourcesForContext
- Specified by:
getExternalResourcesForContextin interfaceorg.pentaho.platform.api.engine.IPlatformPlugin
-
addPluginPerspective
public void addPluginPerspective(org.pentaho.platform.api.engine.perspective.pojo.IPluginPerspective perspective)
-