Type Parameters

  • Cfg = any

Hierarchy (view full)

Constructors

Properties

aliases: Map<TBindKey, TBindKey> = ...
bindManger: BindManager<Module<Cfg>> = ...
config?: Cfg
container: Container
exports: Set<TBindKey> = ...
factoriesAsync: Map<TBindKey, IAsyncFactory<any, Module<any>>> = ...
factoriesSync: Map<TBindKey, ISyncFactory<any, Module<any>>> = ...
importedDynamicModules: Set<Module<any>> = ...
imports: Set<TClassConstructor<Module<any>>> = ...
initialized: boolean = false
__svt_module_traits: string[] = []

Accessors

Methods

  • Defines an alias (aka link) to another binding. Alias can be used in export and global export to achieve global "scoped" bindings for dynamic modules. (see @silvertree/logging for usage example)

    Parameters

    Returns void

  • Defines binding or reference to binding global export from this module. This binding will be available in all modules and by calling provide* methods in container.

    Parameters

    Returns void

  • This method invokes user defined bindings, imports, export and internal module related init logic. Any entity initialization logic should be placed in corresponded factory to minimize module initialization time.

    Returns Promise<void>