org.jbpm.designer.web.plugin.impl
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.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
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 interface IDiagramPluginService
- 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 interface IDiagramPluginService
- Parameters:
request
- the context in which the plugin is requestedname
- the name of the plugin to find
- Returns:
- the plugin object or null
Copyright © 2001-2015 JBoss by Red Hat. All Rights Reserved.