Interface ModuleContext

  • All Superinterfaces:
    Extensible
    All Known Subinterfaces:
    ModuleRuntime

    public interface ModuleContext
    extends Extensible
    The context in which a module lives.

    This interface is not intended to be implemented by clients.

    • Method Detail

      • getRuntimeConfig

        RuntimeConfig getRuntimeConfig()
        Gets the Ceres runtime configuration.
        Returns:
        the Ceres runtime configuration.
      • getModule

        Module getModule()
        Returns:
        The module to which this context belongs to.
      • getModule

        Module getModule​(long id)
        Gets the module for the given module identifier.
        Parameters:
        id - The module identifier. If zero is passed, the system module is returned, which is always present.
        Returns:
        A module or null if no such exists.
      • getModules

        Module[] getModules()
        Gets all modules in this context.
        Returns:
        All modules or an empty array.
      • getLogger

        Logger getLogger()
        Returns:
        The context's logger.
      • installModule

        Module installModule​(URL url,
                             ProxyConfig proxyConfig,
                             ProgressMonitor pm)
                      throws CoreException
        Installs the module from the given URL.
        Parameters:
        url - the URL
        proxyConfig - the proxy configuration, can be null
        pm - the progress monitor
        Returns:
        the new module
        Throws:
        CoreException - if an error occurs