Interface IPlatformPlugin

  • All Superinterfaces:
    IPluginLifecycleListener

    public interface IPlatformPlugin
    extends IPluginLifecycleListener
    This interface represents the contract for the specification of a plugin. A 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.
    Author:
    jdixon
    • Method Detail

      • getId

        String getId()
        Returns the unique ID of this plugin
        Returns:
        the plugin id
      • getSourceDescription

        String getSourceDescription()
        A short description of where this plugin came from, e.g. "biserver/solutions/pluginA"
        Returns:
      • getContentGenerators

        List<IContentGeneratorInfo> getContentGenerators()
        Returns the list of content generators for this plug-in
        Returns:
      • getOverlays

        List<org.pentaho.ui.xul.XulOverlay> getOverlays()
        Returns a list of overlays for this plug-in
        Returns:
      • getContentInfos

        List<IContentInfo> getContentInfos()
        Returns a list of content info objects for this plug-in
        Returns:
      • getPluginPerspectives

        List<IPluginPerspective> getPluginPerspectives()
        Returns a list of perspective objects for this plug-in
        Returns:
        plugin perspectives
      • getBeanFactory

        org.springframework.beans.factory.ListableBeanFactory getBeanFactory()
        Returns the Spring application context for this plugin
      • getStaticResourceMap

        Map<String,​String> getStaticResourceMap()
        Returns a list of static resource paths for this plugin-in
      • getLifecycleListenerClassname

        String getLifecycleListenerClassname()
        Returns the fully qualified name of the lifecycle listener class defined by this plugin. The class must be a IPluginLifecycleListener.
        Returns:
        lifecycle listener class name
      • addLifecycleListener

        void addLifecycleListener​(IPluginLifecycleListener listener)
        Registers a lifecycle listener with this plugin. This listener will be notified when lifecycle events occur on this plugin.
        Parameters:
        listener - a lifecycle listener
      • getMetaProviderMap

        Map<String,​String> getMetaProviderMap()
        The storage mechanism for a plugin to know what ISolutionFileMetaProvider class should be used for a particular content type.
        Returns:
        a map of content types (extensions) keys and ISolutionFileMetaProvider (or deprecated IFileInfoGenerator) classnames for values
      • getServices

        Collection<PluginServiceDefinition> getServices()
        Returns the list of the webservices defined by this plugin.
        Returns:
        the definitions of the webservices for this plugin
      • getExternalResourcesForContext

        List<String> getExternalResourcesForContext​(String context)
        Return a List of scripts registered for a given context.
        Parameters:
        context - named area in the platform
        Returns:
        list of registered scripts