Class PentahoSystemPluginManager
java.lang.Object
org.pentaho.platform.plugin.services.pluginmgr.PentahoSystemPluginManager
- All Implemented Interfaces:
org.pentaho.platform.api.engine.IPluginManager
public class PentahoSystemPluginManager
extends Object
implements org.pentaho.platform.api.engine.IPluginManager
An IPluginManager implementation based on registering objects to the PentahoSystem and querying for them there. This
supports finding types registered through other systems, allowing for the transition away from IPluginManager to
plain PentahoSystem.getXXX calls.
Created by nbaker on 4/18/14.
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
addPluginManagerListener
(org.pentaho.platform.api.engine.IPluginManagerListener listener) protected void
assertUnique
(org.springframework.context.support.GenericApplicationContext applicationContext, String pluginId, String beanId) A utility method that throws an exception if a bean with the id is already defined for this pluginorg.springframework.beans.factory.ListableBeanFactory
getBeanFactory
(String pluginId) getClassLoader
(String pluginId) org.pentaho.platform.api.engine.IContentGenerator
getContentGenerator
(String type, String perspectiveName) org.pentaho.platform.api.engine.IContentGenerator
getContentGeneratorForType
(String type, org.pentaho.platform.api.engine.IPentahoSession session) org.pentaho.platform.api.engine.IContentInfo
getContentTypeInfo
(String type) getExternalResourcesForContext
(String context) protected org.springframework.beans.factory.BeanFactory
getNativeBeanFactory
(org.pentaho.platform.api.engine.IPlatformPlugin plugin, ClassLoader loader) List<org.pentaho.ui.xul.XulOverlay>
getPluginIdForClassLoader
(ClassLoader classLoader) getPluginIdForType
(String contentType) getPluginRESTPerspectivesForType
(String contentType) getPluginSetting
(String pluginId, String key, String defaultValue) getServicePlugin
(String path) Deprecated.getStaticResource
(String path) boolean
isBeanRegistered
(String beanId) boolean
protected boolean
isRequested
(String servicePath, String requestPath) Returntrue
if the servicePath is being addressed by the requestPath.boolean
isStaticResource
(String path) Class<?>
protected void
registerContentTypes
(org.pentaho.platform.api.engine.IPlatformPlugin plugin, ClassLoader loader, org.springframework.context.support.GenericApplicationContext beanFactory) boolean
reload()
boolean
reload
(org.pentaho.platform.api.engine.IPentahoSession session) void
-
Field Details
-
CONTENT_TYPE
- See Also:
-
PLUGIN_ID
- See Also:
-
SETTINGS_PREFIX
- See Also:
-
-
Constructor Details
-
PentahoSystemPluginManager
public PentahoSystemPluginManager()
-
-
Method Details
-
getContentTypes
- Specified by:
getContentTypes
in interfaceorg.pentaho.platform.api.engine.IPluginManager
-
getContentTypeInfo
- Specified by:
getContentTypeInfo
in interfaceorg.pentaho.platform.api.engine.IPluginManager
-
getContentGeneratorForType
public org.pentaho.platform.api.engine.IContentGenerator getContentGeneratorForType(String type, org.pentaho.platform.api.engine.IPentahoSession session) throws org.pentaho.platform.api.engine.ObjectFactoryException - Specified by:
getContentGeneratorForType
in interfaceorg.pentaho.platform.api.engine.IPluginManager
- Throws:
org.pentaho.platform.api.engine.ObjectFactoryException
-
reload
public boolean reload()- Specified by:
reload
in interfaceorg.pentaho.platform.api.engine.IPluginManager
-
reload
public boolean reload(org.pentaho.platform.api.engine.IPentahoSession session) - Specified by:
reload
in interfaceorg.pentaho.platform.api.engine.IPluginManager
-
registerContentTypes
protected void registerContentTypes(org.pentaho.platform.api.engine.IPlatformPlugin plugin, ClassLoader loader, org.springframework.context.support.GenericApplicationContext beanFactory) throws org.pentaho.platform.api.engine.PlatformPluginRegistrationException - Throws:
org.pentaho.platform.api.engine.PlatformPluginRegistrationException
-
assertUnique
protected void assertUnique(org.springframework.context.support.GenericApplicationContext applicationContext, String pluginId, String beanId) throws org.pentaho.platform.api.engine.PlatformPluginRegistrationException A utility method that throws an exception if a bean with the id is already defined for this plugin- Throws:
org.pentaho.platform.api.engine.PlatformPluginRegistrationException
-
getNativeBeanFactory
protected org.springframework.beans.factory.BeanFactory getNativeBeanFactory(org.pentaho.platform.api.engine.IPlatformPlugin plugin, ClassLoader loader) -
getOverlays
- Specified by:
getOverlays
in interfaceorg.pentaho.platform.api.engine.IPluginManager
-
getBean
- Specified by:
getBean
in interfaceorg.pentaho.platform.api.engine.IPluginManager
- Throws:
org.pentaho.platform.api.engine.PluginBeanException
-
getContentGenerator
public org.pentaho.platform.api.engine.IContentGenerator getContentGenerator(String type, String perspectiveName) - Specified by:
getContentGenerator
in interfaceorg.pentaho.platform.api.engine.IPluginManager
-
loadClass
- Specified by:
loadClass
in interfaceorg.pentaho.platform.api.engine.IPluginManager
- Throws:
org.pentaho.platform.api.engine.PluginBeanException
-
isBeanRegistered
- Specified by:
isBeanRegistered
in interfaceorg.pentaho.platform.api.engine.IPluginManager
-
unloadAllPlugins
public void unloadAllPlugins()- Specified by:
unloadAllPlugins
in interfaceorg.pentaho.platform.api.engine.IPluginManager
-
getPluginIdForType
- Specified by:
getPluginIdForType
in interfaceorg.pentaho.platform.api.engine.IPluginManager
-
getPluginRESTPerspectivesForType
- Specified by:
getPluginRESTPerspectivesForType
in interfaceorg.pentaho.platform.api.engine.IPluginManager
-
getPluginRESTPerspectivesForId
- Specified by:
getPluginRESTPerspectivesForId
in interfaceorg.pentaho.platform.api.engine.IPluginManager
-
getPluginIdForClassLoader
- Specified by:
getPluginIdForClassLoader
in interfaceorg.pentaho.platform.api.engine.IPluginManager
-
isRequested
Returntrue
if the servicePath is being addressed by the requestPath. The request path is said to request the service if it contains at least ALL of the elements of the servicePath, in order. It may include more than these elements but it must contain at least the servicePath.- Parameters:
servicePath
-requestPath
-- Returns:
true
if the servicePath is being addressed by the requestPath
-
getPluginSetting
- Specified by:
getPluginSetting
in interfaceorg.pentaho.platform.api.engine.IPluginManager
-
getServicePlugin
Deprecated.- Specified by:
getServicePlugin
in interfaceorg.pentaho.platform.api.engine.IPluginManager
-
getClassLoader
- Specified by:
getClassLoader
in interfaceorg.pentaho.platform.api.engine.IPluginManager
-
getBeanFactory
- Specified by:
getBeanFactory
in interfaceorg.pentaho.platform.api.engine.IPluginManager
-
isStaticResource
- Specified by:
isStaticResource
in interfaceorg.pentaho.platform.api.engine.IPluginManager
-
isPublic
- Specified by:
isPublic
in interfaceorg.pentaho.platform.api.engine.IPluginManager
-
getStaticResource
- Specified by:
getStaticResource
in interfaceorg.pentaho.platform.api.engine.IPluginManager
-
getRegisteredPlugins
- Specified by:
getRegisteredPlugins
in interfaceorg.pentaho.platform.api.engine.IPluginManager
-
getExternalResourcesForContext
- Specified by:
getExternalResourcesForContext
in interfaceorg.pentaho.platform.api.engine.IPluginManager
-
addPluginManagerListener
public void addPluginManagerListener(org.pentaho.platform.api.engine.IPluginManagerListener listener) - Specified by:
addPluginManagerListener
in interfaceorg.pentaho.platform.api.engine.IPluginManager
-