Interface ModuleManager


public interface ModuleManager
Manages how modules are installed, restarted, and removed from Ignition
  • Method Details

    • getGatewayModules

      List<GatewayModule> getGatewayModules()
      Returns a list of all modules that have Gateway-scope hooks
    • getExtensionPoints

      Collection<? extends ExtensionPoint<?>> getExtensionPoints(ResourceType type)
      Find all extension points from running modules for the given resource type.
    • getModuleCount

      int getModuleCount()
      The total count of modules currently installed
    • getModules

      List<GatewayModule> getModules()
      Returns a list of all modules. Note that this list will include disabled and inactive modules. To simply get a list of active modules, use getActiveModules()
    • getActiveModules

      List<ModuleInfo> getActiveModules()
      Returns:
      a list of ModuleInfo objects, one for each module that is currently active in the gateway. Disabled and inactive modules will not be included in this list.
    • getModule

      GatewayModule getModule(String id)
      Finds a module with the given id string. Case-sensitive. Will return null if the module is not found.
    • resolveClass

      Class<?> resolveClass(String className)
      Loops through each module's classloader, giving it a chance to resolve the given class.
    • getVersionHash

      ScopeVersionHash getVersionHash(int scope)
      Retrieve the current hash for a given scope.
      See Also:
    • getDemoCountdownState

      DemoCountdownState getDemoCountdownState()
      Returns what kind of demo state the system is currently in with relation to which modules are installed, which are licensed, and which are in demo mode.