jBPM Designer - Backend 6.0.0.CR1

org.jbpm.designer.web.plugin.impl
Class PluginServiceImpl

java.lang.Object
  extended by 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
 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 registry
 Collection<IDiagramPlugin> getRegisteredPlugins(javax.servlet.http.HttpServletRequest request)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

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 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 requested
name - the name of the plugin to find
Returns:
the plugin object or null

jBPM Designer - Backend 6.0.0.CR1

Copyright © 2001-2013 JBoss by Red Hat. All Rights Reserved.