Class PluginServiceImpl

    • 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