Class PluginServiceImpl
- java.lang.Object
-
- org.jbpm.designer.web.plugin.impl.PluginServiceImpl
-
- All Implemented Interfaces:
IDiagramPluginService
public class PluginServiceImpl extends Object implements IDiagramPluginService
A service to manage plugins in the platform.
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description IDiagramPlugin
findPlugin(javax.servlet.http.HttpServletRequest request, String name)
static IDiagramPluginService
getInstance(javax.servlet.ServletContext context)
static Map<String,IDiagramPlugin>
getLocalPluginsRegistry(javax.servlet.ServletContext context)
Initialize the local plugins registryCollection<IDiagramPlugin>
getRegisteredPlugins(javax.servlet.http.HttpServletRequest request)
-
-
-
Method Detail
-
getInstance
public static IDiagramPluginService getInstance(javax.servlet.ServletContext context)
- Parameters:
context
- the context needed for initialization- Returns:
- the singleton of PluginServiceImpl
-
getLocalPluginsRegistry
public static Map<String,IDiagramPlugin> getLocalPluginsRegistry(javax.servlet.ServletContext context)
Initialize the local plugins registry- Parameters:
context
- the servlet context necessary to grab the files inside the servlet.- Returns:
- the set of local plugins organized by name
-
getRegisteredPlugins
public Collection<IDiagramPlugin> getRegisteredPlugins(javax.servlet.http.HttpServletRequest request)
- Specified by:
getRegisteredPlugins
in interfaceIDiagramPluginService
- Parameters:
request
- the context in which the plugins are requested.- Returns:
- a unmodifiable collection of the registered plugins.
-
findPlugin
public IDiagramPlugin findPlugin(javax.servlet.http.HttpServletRequest request, String name)
- Specified by:
findPlugin
in interfaceIDiagramPluginService
- Parameters:
request
- the context in which the plugin is requestedname
- the name of the plugin to find- Returns:
- the plugin object or null
-
-