public class DefaultPluginManager extends Object implements IPluginManager
| Modifier and Type | Field and Description |
|---|---|
protected Map<String,org.springframework.context.support.GenericApplicationContext> |
beanFactoryMap |
protected Map<String,ClassLoader> |
classLoaderMap |
protected Map<String,IContentInfo> |
contentTypeByExtension |
protected List<org.pentaho.ui.xul.XulOverlay> |
overlaysCache |
protected Map<String,IPlatformPlugin> |
registeredPlugins |
| Constructor and Description |
|---|
DefaultPluginManager() |
| Modifier and Type | Method and Description |
|---|---|
void |
addPluginManagerListener(IPluginManagerListener listener) |
protected void |
assertUnique(String pluginId,
String beanId)
A utility method that throws an exception if a bean with the id is already defined for this plugin
|
IAction |
getAction(String type,
String perspectiveName) |
Object |
getBean(String beanId) |
Object |
getBean(String beanId,
Class<?> requiredType) |
org.springframework.beans.factory.ListableBeanFactory |
getBeanFactory(String pluginId) |
ClassLoader |
getClassLoader(IPlatformPlugin plugin) |
ClassLoader |
getClassLoader(String pluginId) |
IContentGenerator |
getContentGenerator(String type,
String perspectiveName) |
IContentGenerator |
getContentGeneratorForType(String type,
IPentahoSession session)
Deprecated.
|
IContentInfo |
getContentTypeInfo(String type) |
Set<String> |
getContentTypes() |
List<String> |
getExternalResourcesForContext(String context) |
protected org.springframework.beans.factory.BeanFactory |
getNativeBeanFactory(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> |
getOverlays() |
String |
getPluginIdForClassLoader(ClassLoader classLoader) |
String |
getPluginIdForType(String contentType) |
List<String> |
getPluginRESTPerspectivesForId(String id) |
List<String> |
getPluginRESTPerspectivesForType(String contentType) |
Object |
getPluginSetting(IPlatformPlugin plugin,
String key,
String defaultValue) |
Object |
getPluginSetting(String pluginId,
String key,
String defaultValue) |
List<String> |
getRegisteredPlugins() |
String |
getServicePlugin(String path)
Deprecated.
|
InputStream |
getStaticResource(String path)
Deprecated.
|
protected void |
initializeBeanFactory(IPlatformPlugin plugin,
ClassLoader loader)
Initializes a bean factory for serving up instance of plugin classes.
|
boolean |
isBeanRegistered(String beanId) |
boolean |
isPublic(String pluginId,
String path) |
protected boolean |
isRequested(String servicePath,
String requestPath)
Return
true if the servicePath is being addressed by the requestPath. |
boolean |
isStaticResource(String path)
Deprecated.
|
Class<?> |
loadClass(String beanId) |
protected void |
registerContentTypes(IPlatformPlugin plugin,
ClassLoader loader) |
boolean |
reload() |
boolean |
reload(IPentahoSession session)
Deprecated.
|
void |
unloadAllPlugins() |
protected Map<String,ClassLoader> classLoaderMap
protected Map<String,org.springframework.context.support.GenericApplicationContext> beanFactoryMap
protected Map<String,IPlatformPlugin> registeredPlugins
protected Map<String,IContentInfo> contentTypeByExtension
protected List<org.pentaho.ui.xul.XulOverlay> overlaysCache
public Set<String> getContentTypes()
getContentTypes in interface IPluginManagerpublic List<org.pentaho.ui.xul.XulOverlay> getOverlays()
getOverlays in interface IPluginManagerpublic IContentInfo getContentTypeInfo(String type)
getContentTypeInfo in interface IPluginManagerpublic List<String> getRegisteredPlugins()
getRegisteredPlugins in interface IPluginManager@Deprecated public final boolean reload(IPentahoSession session)
reload in interface IPluginManagerpublic final boolean reload()
reload in interface IPluginManagerprotected void registerContentTypes(IPlatformPlugin plugin, ClassLoader loader) throws PlatformPluginRegistrationException
protected org.springframework.beans.factory.BeanFactory getNativeBeanFactory(IPlatformPlugin plugin, ClassLoader loader)
null if no bean definition source is
availableprotected void initializeBeanFactory(IPlatformPlugin plugin, ClassLoader loader) throws PlatformPluginRegistrationException
protected void assertUnique(String pluginId, String beanId) throws PlatformPluginRegistrationException
public ClassLoader getClassLoader(IPlatformPlugin plugin)
public ClassLoader getClassLoader(String pluginId)
getClassLoader in interface IPluginManagerpublic org.springframework.beans.factory.ListableBeanFactory getBeanFactory(String pluginId)
getBeanFactory in interface IPluginManagerpublic Object getBean(String beanId) throws PluginBeanException
getBean in interface IPluginManagerPluginBeanExceptionpublic IContentGenerator getContentGenerator(String type, String perspectiveName)
getContentGenerator in interface IPluginManagerpublic Class<?> loadClass(String beanId) throws PluginBeanException
loadClass in interface IPluginManagerPluginBeanExceptionpublic boolean isBeanRegistered(String beanId)
isBeanRegistered in interface IPluginManagerpublic void unloadAllPlugins()
unloadAllPlugins in interface IPluginManagerpublic Object getPluginSetting(IPlatformPlugin plugin, String key, String defaultValue)
public Object getPluginSetting(String pluginId, String key, String defaultValue)
getPluginSetting in interface IPluginManagerpublic String getPluginIdForType(String contentType)
getPluginIdForType in interface IPluginManager@Deprecated public IContentGenerator getContentGeneratorForType(String type, IPentahoSession session) throws ObjectFactoryException
getContentGeneratorForType in interface IPluginManagerObjectFactoryExceptionpublic String getPluginIdForClassLoader(ClassLoader classLoader)
getPluginIdForClassLoader in interface IPluginManagerprotected boolean isRequested(String servicePath, String requestPath)
true 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.servicePath - requestPath - true if the servicePath is being addressed by the requestPath@Deprecated public String getServicePlugin(String path)
getServicePlugin in interface IPluginManager@Deprecated public boolean isStaticResource(String path)
isStaticResource in interface IPluginManagerpublic boolean isPublic(String pluginId, String path)
isPublic in interface IPluginManager@Deprecated public InputStream getStaticResource(String path)
getStaticResource in interface IPluginManagerpublic List<String> getExternalResourcesForContext(String context)
getExternalResourcesForContext in interface IPluginManagerpublic List<String> getPluginRESTPerspectivesForType(String contentType)
getPluginRESTPerspectivesForType in interface IPluginManagerpublic List<String> getPluginRESTPerspectivesForId(String id)
getPluginRESTPerspectivesForId in interface IPluginManagerpublic void addPluginManagerListener(IPluginManagerListener listener)
addPluginManagerListener in interface IPluginManagerCopyright © 2017 Hitachi Vantara. All rights reserved.