Initializes a new instance of the {@link geocortex.framework.application.ModuleManager} class.
The {@link geocortex.framework.application.Application} that this module belongs to.
The modules managed by this instance.
The {@link geocortex.framework.application.Application} that this module manager belongs to.
Check for the existence of a module in configuration
Creates an instance of a module by its type name.
The type name of the module to instantiate.
The ID of the library that this module belongs to.
Marks a module as being loaded.
The configured name of the module to instantiate.
The instance of the module to be loaded.
Checks if a module has been loaded or not.
The configured name of the module to check for.
Notifies if/when a module is loaded. If the module is already loaded, the supplied callback is fired immediately. If the module has not yet been loaded, the callback will be fired when it becomes loaded. Take care to avoid using this method unless it is absolutely required, as it can introduce unnecessary coupling between modules.
The configured name of the module to notify for.
The callback to fire if/when the module is loaded.
Shuts down the module manager, calling "shutdown" on all loaded modules and removing them from the managed collection.
Custom shutdown related state (such as an exception) to pass to each module via shutdown().
ModuleManager provides some basic module management functionality, tracking and instantiating module instances. A global ModuleManager instance lives in the base geocortex namespace.