Package com.bc.ceres.core.runtime
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 Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Logger
getLogger()
Module
getModule()
Module
getModule(long id)
Gets the module for the given module identifier.Module[]
getModules()
Gets all modules in this context.RuntimeConfig
getRuntimeConfig()
Gets the Ceres runtime configuration.Module
installModule(URL url, ProxyConfig proxyConfig, ProgressMonitor pm)
Installs the module from the given URL.-
Methods inherited from interface com.bc.ceres.core.Extensible
getExtension
-
-
-
-
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 URLproxyConfig
- the proxy configuration, can be nullpm
- the progress monitor- Returns:
- the new module
- Throws:
CoreException
- if an error occurs
-
-