|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.pentaho.platform.plugin.services.pluginmgr.PlatformPlugin
public class PlatformPlugin
Default bean implementation of IPlatformPlugin
Nested Class Summary |
---|
Nested classes/interfaces inherited from interface org.pentaho.platform.api.engine.IPlatformPlugin |
---|
IPlatformPlugin.ClassLoaderType |
Constructor Summary | |
---|---|
PlatformPlugin()
|
Method Summary | |
---|---|
void |
addBean(PluginBeanDefinition beanDefinition)
|
void |
addContentGenerator(IContentGeneratorInfo contentGenerator)
Adds a content generator to this plug-in |
void |
addContentInfo(IContentInfo contentInfo)
Adds a content info type to this plug-in |
void |
addExternalResource(String context,
String resource)
|
void |
addInitializer(IPentahoInitializer initializer)
Adds an initializer to this plug-in |
void |
addLifecycleListener(IPluginLifecycleListener listener)
Registers a lifecycle listener with this plugin. |
void |
addMenuCustomization(org.pentaho.ui.xul.IMenuCustomization customization)
|
void |
addOverlay(org.pentaho.ui.xul.XulOverlay overlay)
Adds an overlay to this plug-in |
void |
addStaticResourcePath(String url,
String localFolder)
|
void |
addWebservice(PluginServiceDefinition serviceDefinition)
|
Collection<PluginBeanDefinition> |
getBeans()
Returns a list of bean configurations for this plugin-in |
List<IContentGeneratorInfo> |
getContentGenerators()
Returns the list of content generators for this plug-in |
List<IContentInfo> |
getContentInfos()
Returns a list of content info objects for this plug-in |
List<String> |
getExternalResourcesForContext(String context)
Return a List of scripts registered for a given context. |
String |
getId()
Returns the unique ID of this plugin |
String |
getLifecycleListenerClassname()
Returns the fully qualified name of the lifecycle listener class defined by this plugin. |
IPlatformPlugin.ClassLoaderType |
getLoaderType()
Indicates what kind of classloader should be used to load classes and resources from this plugin. |
List<?> |
getMenuCustomizations()
Returns a list of menu overlays for this plug-in |
Map<String,String> |
getMetaProviderMap()
The storage mechanism for a plugin to know what ISolutionFileMetaProvider class should be used for a particular content type. |
List<org.pentaho.ui.xul.XulOverlay> |
getOverlays()
Returns a list of overlays for this plug-in |
Collection<PluginServiceDefinition> |
getServices()
Returns the list of the webservices defined by this plugin. |
String |
getSourceDescription()
A short description of where this plugin came from, e.g. |
Map<String,String> |
getStaticResourceMap()
Returns a list of static resource paths for this plugin-in |
void |
init()
Called just prior to the plugin being registered with the platform. |
void |
init(IPentahoSession session)
Simplifier for initialization of objects from the PentahoSystem object |
void |
loaded()
Called after the plugin has been registered with the platform, i.e. |
void |
setId(String id)
Sets the unique id for this plug-in |
void |
setLifecycleListenerClassname(String lifecycleListenerClassname)
|
void |
setLoadertype(IPlatformPlugin.ClassLoaderType loaderType)
|
void |
setSourceDescription(String sourceDescription)
|
void |
unLoaded()
Called when the plugin needs to be unloaded. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public PlatformPlugin()
Method Detail |
---|
public void init(IPentahoSession session)
IPentahoInitializer
init
in interface IPentahoInitializer
public String getLifecycleListenerClassname()
IPlatformPlugin
IPluginLifecycleListener
.
getLifecycleListenerClassname
in interface IPlatformPlugin
public void setLifecycleListenerClassname(String lifecycleListenerClassname)
public List<IContentGeneratorInfo> getContentGenerators()
IPlatformPlugin
getContentGenerators
in interface IPlatformPlugin
public List<IContentInfo> getContentInfos()
IPlatformPlugin
getContentInfos
in interface IPlatformPlugin
public String getId()
IPlatformPlugin
getId
in interface IPlatformPlugin
public List<org.pentaho.ui.xul.XulOverlay> getOverlays()
IPlatformPlugin
getOverlays
in interface IPlatformPlugin
public void setId(String id)
id
- public void addInitializer(IPentahoInitializer initializer)
initializer
- public void addContentGenerator(IContentGeneratorInfo contentGenerator)
contentGenerator
- public void addContentInfo(IContentInfo contentInfo)
contentInfo
- public void addOverlay(org.pentaho.ui.xul.XulOverlay overlay)
overlay
- public List<?> getMenuCustomizations()
IPlatformPlugin
getMenuCustomizations
in interface IPlatformPlugin
public void addMenuCustomization(org.pentaho.ui.xul.IMenuCustomization customization)
public String getSourceDescription()
IPlatformPlugin
getSourceDescription
in interface IPlatformPlugin
public void setSourceDescription(String sourceDescription)
public void addStaticResourcePath(String url, String localFolder)
public Map<String,String> getStaticResourceMap()
IPlatformPlugin
getStaticResourceMap
in interface IPlatformPlugin
public Collection<PluginBeanDefinition> getBeans()
IPlatformPlugin
getBeans
in interface IPlatformPlugin
public Collection<PluginServiceDefinition> getServices()
IPlatformPlugin
getServices
in interface IPlatformPlugin
public void addBean(PluginBeanDefinition beanDefinition)
public void addWebservice(PluginServiceDefinition serviceDefinition)
public void init() throws PluginLifecycleException
IPluginLifecycleListener
IPluginProvider
s
init
in interface IPlatformPlugin
init
in interface IPluginLifecycleListener
PluginLifecycleException
- if an error occurredpublic void loaded() throws PluginLifecycleException
IPluginLifecycleListener
loaded
in interface IPlatformPlugin
loaded
in interface IPluginLifecycleListener
PluginLifecycleException
- if an error occurredpublic void unLoaded() throws PluginLifecycleException
IPluginLifecycleListener
unLoaded
in interface IPlatformPlugin
unLoaded
in interface IPluginLifecycleListener
PluginLifecycleException
- if an error occurredpublic void addLifecycleListener(IPluginLifecycleListener listener)
IPlatformPlugin
addLifecycleListener
in interface IPlatformPlugin
listener
- a lifecycle listenerpublic Map<String,String> getMetaProviderMap()
IPlatformPlugin
getMetaProviderMap
in interface IPlatformPlugin
public IPlatformPlugin.ClassLoaderType getLoaderType()
IPlatformPlugin
URLClassLoader
.
getLoaderType
in interface IPlatformPlugin
IPlatformPlugin.ClassLoaderType
public void setLoadertype(IPlatformPlugin.ClassLoaderType loaderType)
public void addExternalResource(String context, String resource)
public List<String> getExternalResourcesForContext(String context)
IPlatformPlugin
getExternalResourcesForContext
in interface IPlatformPlugin
context
- named area in the platform
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |