public class PentahoSystemPluginManager extends Object implements IPluginManager
Modifier and Type | Field and Description |
---|---|
static String |
CONTENT_TYPE |
static String |
PLUGIN_ID |
static String |
SETTINGS_PREFIX |
Constructor and Description |
---|
PentahoSystemPluginManager() |
Modifier and Type | Method and Description |
---|---|
void |
addPluginManagerListener(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 plugin
|
Object |
getBean(String beanId) |
org.springframework.beans.factory.ListableBeanFactory |
getBeanFactory(String pluginId) |
ClassLoader |
getClassLoader(String pluginId) |
IContentGenerator |
getContentGenerator(String type,
String perspectiveName) |
IContentGenerator |
getContentGeneratorForType(String type,
IPentahoSession session) |
IContentInfo |
getContentTypeInfo(String type) |
Set<String> |
getContentTypes() |
List<String> |
getExternalResourcesForContext(String context) |
protected org.springframework.beans.factory.BeanFactory |
getNativeBeanFactory(IPlatformPlugin plugin,
ClassLoader loader) |
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(String pluginId,
String key,
String defaultValue) |
List<String> |
getRegisteredPlugins() |
String |
getServicePlugin(String path)
Deprecated.
|
InputStream |
getStaticResource(String path) |
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) |
Class<?> |
loadClass(String beanId) |
protected void |
registerContentTypes(IPlatformPlugin plugin,
ClassLoader loader,
org.springframework.context.support.GenericApplicationContext beanFactory) |
boolean |
reload() |
boolean |
reload(IPentahoSession session) |
void |
unloadAllPlugins() |
public static final String CONTENT_TYPE
public static final String PLUGIN_ID
public static final String SETTINGS_PREFIX
public Set<String> getContentTypes()
getContentTypes
in interface IPluginManager
public IContentInfo getContentTypeInfo(String type)
getContentTypeInfo
in interface IPluginManager
public IContentGenerator getContentGeneratorForType(String type, IPentahoSession session) throws ObjectFactoryException
getContentGeneratorForType
in interface IPluginManager
ObjectFactoryException
public boolean reload()
reload
in interface IPluginManager
public boolean reload(IPentahoSession session)
reload
in interface IPluginManager
protected void registerContentTypes(IPlatformPlugin plugin, ClassLoader loader, org.springframework.context.support.GenericApplicationContext beanFactory) throws PlatformPluginRegistrationException
protected void assertUnique(org.springframework.context.support.GenericApplicationContext applicationContext, String pluginId, String beanId) throws PlatformPluginRegistrationException
protected org.springframework.beans.factory.BeanFactory getNativeBeanFactory(IPlatformPlugin plugin, ClassLoader loader)
public List<org.pentaho.ui.xul.XulOverlay> getOverlays()
getOverlays
in interface IPluginManager
public Object getBean(String beanId) throws PluginBeanException
getBean
in interface IPluginManager
PluginBeanException
public IContentGenerator getContentGenerator(String type, String perspectiveName)
getContentGenerator
in interface IPluginManager
public Class<?> loadClass(String beanId) throws PluginBeanException
loadClass
in interface IPluginManager
PluginBeanException
public boolean isBeanRegistered(String beanId)
isBeanRegistered
in interface IPluginManager
public void unloadAllPlugins()
unloadAllPlugins
in interface IPluginManager
public String getPluginIdForType(String contentType)
getPluginIdForType
in interface IPluginManager
public List<String> getPluginRESTPerspectivesForType(String contentType)
getPluginRESTPerspectivesForType
in interface IPluginManager
public List<String> getPluginRESTPerspectivesForId(String id)
getPluginRESTPerspectivesForId
in interface IPluginManager
public String getPluginIdForClassLoader(ClassLoader classLoader)
getPluginIdForClassLoader
in interface IPluginManager
protected 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 requestPathpublic Object getPluginSetting(String pluginId, String key, String defaultValue)
getPluginSetting
in interface IPluginManager
@Deprecated public String getServicePlugin(String path)
getServicePlugin
in interface IPluginManager
public ClassLoader getClassLoader(String pluginId)
getClassLoader
in interface IPluginManager
public org.springframework.beans.factory.ListableBeanFactory getBeanFactory(String pluginId)
getBeanFactory
in interface IPluginManager
public boolean isStaticResource(String path)
isStaticResource
in interface IPluginManager
public boolean isPublic(String pluginId, String path)
isPublic
in interface IPluginManager
public InputStream getStaticResource(String path)
getStaticResource
in interface IPluginManager
public List<String> getRegisteredPlugins()
getRegisteredPlugins
in interface IPluginManager
public List<String> getExternalResourcesForContext(String context)
getExternalResourcesForContext
in interface IPluginManager
public void addPluginManagerListener(IPluginManagerListener listener)
addPluginManagerListener
in interface IPluginManager
Copyright © 2017 Hitachi Vantara. All rights reserved.