Class Plugin

java.lang.Object
ru.bgcrm.plugin.Plugin
org.bgerp.plugin.kernel.Plugin

public class Plugin extends Plugin
Special plugin for application's kernel.
  • Field Details

  • Method Details

    • isSystem

      public boolean isSystem()
      Description copied from class: Plugin
      System plugins are always loaded, enabled and not show in the list.
      Overrides:
      isSystem in class Plugin
      Returns:
    • isEnabled

      public boolean isEnabled(ConfigMap config, String defaultValue)
      Description copied from class: Plugin
      If the plugin enabled.
      Overrides:
      isEnabled in class Plugin
      Parameters:
      config - configuration, where the plugin can be explicitly enabled.
      defaultValue - default value if not explicitly enabled: '1' - enabled, 'lic' - if presented in license.
      Returns:
      true or false.
    • getActionPackages

      public Set<String> getActionPackages()
      Description copied from class: Plugin
      Packages for searching annotated actions.
      Overrides:
      getActionPackages in class Plugin
      Returns:
    • getTables

      public Set<Table> getTables()
      Description copied from class: Plugin
      Used DB tables.
      Overrides:
      getTables in class Plugin
      Returns:
    • getObjectTypes

      public Set<String> getObjectTypes()
      Description copied from class: Plugin
      Plugin's entities.
      Overrides:
      getObjectTypes in class Plugin
      Returns:
    • getCleaner

      public Cleaner getCleaner()
      Description copied from class: Plugin
      DB cleaner.
      Overrides:
      getCleaner in class Plugin
      Returns:
    • loadEndpoints

      protected Map<String,List<String>> loadEndpoints()
      Description copied from class: Plugin
      Default implementation, loads endpoints from the XML Plugin.document. Deprecated way, for backward compatibility only.
      Overrides:
      loadEndpoints in class Plugin
      Returns:
    • init

      public void init(Connection con) throws Exception
      Description copied from class: Plugin
      Initialization during server's start.
      Overrides:
      init in class Plugin
      Parameters:
      con -
      Throws:
      Exception