Class PluginManager

java.lang.Object
ru.bgcrm.plugin.PluginManager

public class PluginManager extends Object
Singleton plugin loader and storage
  • Field Details

    • ERP_PACKAGES

      public static final String[] ERP_PACKAGES
  • Method Details

    • init

      public static void init() throws Exception
      Throws:
      Exception
    • getInstance

      public static PluginManager getInstance()
    • getFullSortedPluginList

      public List<Plugin> getFullSortedPluginList()
      Complete list of all plugins. First kernel plugin, after the rest alphabetically sorted by ID.
      Returns:
      the plugin list
    • getPluginList

      public List<Plugin> getPluginList()
      List of enabled plugins
      Returns:
      the enabled plugins
    • getInactivePluginList

      public List<Plugin> getInactivePluginList()
      List of not active plugins that can be activated
      Returns:
      the inactive plugins
    • getPluginMap

      public Map<String,Plugin> getPluginMap()
      Map of enabled plugins, key Plugin.getId()
      Returns:
      the enabled plugins map
    • getFullPluginMap

      public Map<String,Plugin> getFullPluginMap()
      Complete map of all plugins, key Plugin.getId()
      Returns:
      the full plugins map