Package ru.bgcrm.plugin

# Class PluginManager

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

public class PluginManager extends Object
Singleton plugin loader and storage.

- ## Field Summary

  Fields
  Modifier and Type
  Field
  Description
  `static final String[]`
  `ERP_PACKAGES`

- ## Method Summary

  Modifier and Type
  Method
  Description
  `Map<String,Plugin>`
  `getFullPluginMap()`
  Complete map of all plugins, key `Plugin.getId()`.
  `List<Plugin>`
  `getFullSortedPluginList()`
  Complete list of all plugins.
  `List<Plugin>`
  `getInactivePluginList()`
  List of not active plugins that can be activated.
  `static PluginManager`
  `getInstance()`
  `List<Plugin>`
  `getPluginList()`
  List of enabled plugins.
  `Map<String,Plugin>`
  `getPluginMap()`
  Map of enabled plugins, key `Plugin.getId()`.
  `static void`
  `init()`

  ### Methods inherited from class java.lang.Object

  `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- ## 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:

  - ### getPluginList

    public List<Plugin> getPluginList()
    List of enabled plugins.
    Returns:

  - ### getInactivePluginList

    public List<Plugin> getInactivePluginList()
    List of not active plugins that can be activated.
    Returns:

  - ### getPluginMap

    public Map<String,Plugin> getPluginMap()
    Map of enabled plugins, key `Plugin.getId()`.
    Returns:

  - ### getFullPluginMap

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