Retrieve the providers that were collected from the module graph and used to create the primary injector.
Get the runtime's dependency injector. This injector can provide all dependencies specified
in the imported modules' providers
definitions.
True if the --self-test
option was used to launch the application.
Perform runtime configuration steps
Iterate over the module definitions which are part of this runtime and append to the given array the set of dependency injection providers which are specified in the module definitions.
An array which will be populated
Fire an event to all modules which understand it. Should be upper-camel-case, meaning to fire the altOnStart() method, send "OnStart".
Retrieve the ModuleAnnotation for a given Module definition, whether it be a class annotated
with @Module()
or a plain object with $module
which configures a module class.
This is an alias of ModuleAnnotation.getForClass(module)
Get a specific service from the dependency injector.
Instantiate the modules of this runtime using the given dependency injector.
The injector will be inherited into an injector that provides the dependencies
specified in the imported modules' providers
definitions.
Stop all running services and shut down the process
Start any services, as defined by modules. For instance, if you import WebServerModule from @alterior/web-server, calling this will instruct the module to begin serving on the configured port.
This will send the OnStart
lifecycle event to all modules, which triggers the altOnStart()
method of any module
which implements it to be called. It also instructs the RolesService to start roles as per it's configuration.
For more information about Roles, see the documentation for RolesService.
Stop any services, as defined by imported modules of this runtime. For instance, if you import WebServerModule from @alterior/web-server, calling this will instruct the module to stop serving on the configured port. Also builds in a timeout to allow for all services and operations to stop before resolving.
This will send the OnStop
lifecycle event to all modules, which triggers the altOnStop()
method of any module
which implements it to be called. It also instructs the RolesService to stop any roles which are currently running.
For more information about Roles, see the documentation for RolesService.
Generated using TypeDoc
Used to construct a runtime environment for a given entry module. Handles resolving the module tree into an injector as well as constructing the module instances and running lifecycle events.