public interface IPlatformPlugin extends IPluginLifecycleListener
IPluginProvider
is
responsible for serving these to requesting clients, such as the IPluginManager
. The presence of an
instance of an IPlatformPlugin
does not necessarily mean that the plugin is loaded. An implementations
of this interface represents merely a plugin configuration.Modifier and Type | Interface and Description |
---|---|
static class |
IPlatformPlugin.ClassLoaderType |
Modifier and Type | Method and Description |
---|---|
void |
addLifecycleListener(IPluginLifecycleListener listener)
Registers a lifecycle listener with this plugin.
|
org.springframework.beans.factory.ListableBeanFactory |
getBeanFactory()
Returns the Spring application context for this plugin
|
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.
|
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
|
List<IPluginPerspective> |
getPluginPerspectives()
Returns a list of perspective objects 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 |
loaded()
Called after the plugin has been registered with the platform, i.e.
|
void |
unLoaded()
Called when the plugin needs to be unloaded.
|
String getId()
String getSourceDescription()
List<IContentGeneratorInfo> getContentGenerators()
List<org.pentaho.ui.xul.XulOverlay> getOverlays()
List<IContentInfo> getContentInfos()
List<IPluginPerspective> getPluginPerspectives()
Collection<PluginBeanDefinition> getBeans()
org.springframework.beans.factory.ListableBeanFactory getBeanFactory()
Map<String,String> getStaticResourceMap()
String getLifecycleListenerClassname()
IPluginLifecycleListener
.void addLifecycleListener(IPluginLifecycleListener listener)
listener
- a lifecycle listenervoid init() throws PluginLifecycleException
IPluginLifecycleListener
IPluginProvider
sinit
in interface IPluginLifecycleListener
PluginLifecycleException
- if an error occurredvoid loaded() throws PluginLifecycleException
IPluginLifecycleListener
loaded
in interface IPluginLifecycleListener
PluginLifecycleException
- if an error occurredvoid unLoaded() throws PluginLifecycleException
IPluginLifecycleListener
unLoaded
in interface IPluginLifecycleListener
PluginLifecycleException
- if an error occurredMap<String,String> getMetaProviderMap()
Collection<PluginServiceDefinition> getServices()
IPlatformPlugin.ClassLoaderType getLoaderType()
URLClassLoader
.IPlatformPlugin.ClassLoaderType