Package com.bc.ceres.core.runtime
Interface ModuleContext
- All Superinterfaces:
Extensible
- All Known Subinterfaces:
ModuleRuntime
The context in which a module lives.
This interface is not intended to be implemented by clients.
-
Method Summary
Modifier and TypeMethodDescriptiongetModule
(long id) Gets the module for the given module identifier.Module[]
Gets all modules in this context.Gets the Ceres runtime configuration.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 Details
-
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
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
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
-