Interface ModuleService

All Superinterfaces:
Service

public interface ModuleService
extends Service
Provides information about currently deployed SDK Modules.
  • Method Summary

    Modifier and Type Method Description
    <T extends ModuleInstanceConfig>
    T
    getModuleInstanceConfig​(java.lang.Class<T> clazz)
    Return the ModuleInstanceConfig instance currently loaded into memory for the given ModuleInstanceConfig implementation class.
    java.util.Set<Module> getModules()
    Returns a Set containing all deployed Modules.
    boolean isModuleAvailable​(java.lang.String prefix)
    Given the prefix of a module, this method returns true if the module is available during the runtime, else returns false.
  • Method Details

    • getModules

      java.util.Set<Module> getModules()
      Returns a Set containing all deployed Modules.
      Returns:
      a Set containing all deployed Modules
    • getModuleInstanceConfig

      <T extends ModuleInstanceConfig> T getModuleInstanceConfig​(java.lang.Class<T> clazz)
      Return the ModuleInstanceConfig instance currently loaded into memory for the given ModuleInstanceConfig implementation class.
      Type Parameters:
      T - specific class which implements ModuleInstanceConfig
      Parameters:
      clazz - specific class which implements ModuleInstanceConfig
      Returns:
      instance of that ModuleInstanceConfig which is currently loaded
    • isModuleAvailable

      boolean isModuleAvailable​(java.lang.String prefix)
      Given the prefix of a module, this method returns true if the module is available during the runtime, else returns false.
      Parameters:
      prefix - module prefix
      Returns:
      true iff the module is present