Class DefaultPluginManager
java.lang.Object
org.pentaho.platform.plugin.services.pluginmgr.DefaultPluginManager
- All Implemented Interfaces:
org.pentaho.platform.api.engine.IPluginManager
public class DefaultPluginManager
extends Object
implements org.pentaho.platform.api.engine.IPluginManager
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected Map<String,ClassLoader> protected List<org.pentaho.ui.xul.XulOverlay> -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddPluginManagerListener(org.pentaho.platform.api.engine.IPluginManagerListener listener) protected voidassertUnique(String pluginId, String beanId) A utility method that throws an exception if a bean with the id is already defined for this pluginorg.pentaho.platform.api.action.IActionorg.springframework.beans.factory.ListableBeanFactorygetBeanFactory(String pluginId) getClassLoader(String pluginId) getClassLoader(org.pentaho.platform.api.engine.IPlatformPlugin plugin) org.pentaho.platform.api.engine.IContentGeneratorgetContentGenerator(String type, String perspectiveName) org.pentaho.platform.api.engine.IContentGeneratorgetContentGeneratorForType(String type, org.pentaho.platform.api.engine.IPentahoSession session) Deprecated.org.pentaho.platform.api.engine.IContentInfogetContentTypeInfo(String type) getExternalResourcesForContext(String context) protected org.springframework.beans.factory.BeanFactorygetNativeBeanFactory(org.pentaho.platform.api.engine.IPlatformPlugin plugin, ClassLoader loader) The native bean factory is the bean factory that has had all of its bean definitions loaded natively.List<org.pentaho.ui.xul.XulOverlay>getPluginIdForClassLoader(ClassLoader classLoader) getPluginIdForType(String contentType) getPluginRESTPerspectivesForType(String contentType) getPluginSetting(String pluginId, String key, String defaultValue) getPluginSetting(org.pentaho.platform.api.engine.IPlatformPlugin plugin, String key, String defaultValue) getServicePlugin(String path) Deprecated.getStaticResource(String path) Deprecated.protected voidinitializeBeanFactory(org.pentaho.platform.api.engine.IPlatformPlugin plugin, ClassLoader loader) Initializes a bean factory for serving up instance of plugin classes.booleanisBeanRegistered(String beanId) booleanprotected booleanisRequested(String servicePath, String requestPath) Returntrueif the servicePath is being addressed by the requestPath.booleanisStaticResource(String path) Deprecated.Class<?>protected voidregisterContentTypes(org.pentaho.platform.api.engine.IPlatformPlugin plugin, ClassLoader loader) final booleanreload()final booleanreload(org.pentaho.platform.api.engine.IPentahoSession session) Deprecated.void
-
Field Details
-
classLoaderMap
-
beanFactoryMap
-
registeredPlugins
-
contentTypeByExtension
-
overlaysCache
-
-
Constructor Details
-
DefaultPluginManager
public DefaultPluginManager()
-
-
Method Details
-
getContentTypes
- Specified by:
getContentTypesin interfaceorg.pentaho.platform.api.engine.IPluginManager
-
getOverlays
- Specified by:
getOverlaysin interfaceorg.pentaho.platform.api.engine.IPluginManager
-
getContentTypeInfo
- Specified by:
getContentTypeInfoin interfaceorg.pentaho.platform.api.engine.IPluginManager
-
getRegisteredPlugins
- Specified by:
getRegisteredPluginsin interfaceorg.pentaho.platform.api.engine.IPluginManager
-
reload
Deprecated.- Specified by:
reloadin interfaceorg.pentaho.platform.api.engine.IPluginManager
-
reload
public final boolean reload()- Specified by:
reloadin interfaceorg.pentaho.platform.api.engine.IPluginManager
-
registerContentTypes
protected void registerContentTypes(org.pentaho.platform.api.engine.IPlatformPlugin plugin, ClassLoader loader) throws org.pentaho.platform.api.engine.PlatformPluginRegistrationException - Throws:
org.pentaho.platform.api.engine.PlatformPluginRegistrationException
-
getNativeBeanFactory
protected org.springframework.beans.factory.BeanFactory getNativeBeanFactory(org.pentaho.platform.api.engine.IPlatformPlugin plugin, ClassLoader loader) The native bean factory is the bean factory that has had all of its bean definitions loaded natively. In other words, the plugin manager will not add any further bean definitions (i.e. from a plugin.xml file) into this factory. This factory represents the one responsible for holding bean definitions for plugin.spring.xml or, if in a unit test environment, the unit test pre-loaded bean factory.- Returns:
- a bean factory will preconfigured bean definitions or
nullif no bean definition source is available
-
initializeBeanFactory
protected void initializeBeanFactory(org.pentaho.platform.api.engine.IPlatformPlugin plugin, ClassLoader loader) throws org.pentaho.platform.api.engine.PlatformPluginRegistrationException Initializes a bean factory for serving up instance of plugin classes.- Throws:
org.pentaho.platform.api.engine.PlatformPluginRegistrationException
-
assertUnique
protected void assertUnique(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
-
getClassLoader
-
getClassLoader
- Specified by:
getClassLoaderin interfaceorg.pentaho.platform.api.engine.IPluginManager
-
getBeanFactory
- Specified by:
getBeanFactoryin interfaceorg.pentaho.platform.api.engine.IPluginManager
-
getBean
-
getBean
- Specified by:
getBeanin 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:
getContentGeneratorin interfaceorg.pentaho.platform.api.engine.IPluginManager
-
getAction
-
loadClass
- Specified by:
loadClassin interfaceorg.pentaho.platform.api.engine.IPluginManager- Throws:
org.pentaho.platform.api.engine.PluginBeanException
-
isBeanRegistered
- Specified by:
isBeanRegisteredin interfaceorg.pentaho.platform.api.engine.IPluginManager
-
unloadAllPlugins
public void unloadAllPlugins()- Specified by:
unloadAllPluginsin interfaceorg.pentaho.platform.api.engine.IPluginManager
-
getPluginSetting
-
getPluginSetting
- Specified by:
getPluginSettingin interfaceorg.pentaho.platform.api.engine.IPluginManager
-
getPluginIdForType
- Specified by:
getPluginIdForTypein interfaceorg.pentaho.platform.api.engine.IPluginManager
-
getContentGeneratorForType
@Deprecated public org.pentaho.platform.api.engine.IContentGenerator getContentGeneratorForType(String type, org.pentaho.platform.api.engine.IPentahoSession session) throws org.pentaho.platform.api.engine.ObjectFactoryException Deprecated.- Specified by:
getContentGeneratorForTypein interfaceorg.pentaho.platform.api.engine.IPluginManager- Throws:
org.pentaho.platform.api.engine.ObjectFactoryException
-
getPluginIdForClassLoader
- Specified by:
getPluginIdForClassLoaderin interfaceorg.pentaho.platform.api.engine.IPluginManager
-
isRequested
Returntrueif 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:
trueif the servicePath is being addressed by the requestPath
-
getServicePlugin
Deprecated.- Specified by:
getServicePluginin interfaceorg.pentaho.platform.api.engine.IPluginManager
-
isStaticResource
Deprecated.- Specified by:
isStaticResourcein interfaceorg.pentaho.platform.api.engine.IPluginManager
-
isPublic
- Specified by:
isPublicin interfaceorg.pentaho.platform.api.engine.IPluginManager
-
getStaticResource
Deprecated.- Specified by:
getStaticResourcein interfaceorg.pentaho.platform.api.engine.IPluginManager
-
getExternalResourcesForContext
- Specified by:
getExternalResourcesForContextin interfaceorg.pentaho.platform.api.engine.IPluginManager
-
getPluginRESTPerspectivesForType
- Specified by:
getPluginRESTPerspectivesForTypein interfaceorg.pentaho.platform.api.engine.IPluginManager
-
getPluginRESTPerspectivesForId
- Specified by:
getPluginRESTPerspectivesForIdin interfaceorg.pentaho.platform.api.engine.IPluginManager
-
addPluginManagerListener
public void addPluginManagerListener(org.pentaho.platform.api.engine.IPluginManagerListener listener) - Specified by:
addPluginManagerListenerin interfaceorg.pentaho.platform.api.engine.IPluginManager
-