This module type made specially as proxy module, its receives a parent module and mirrors its bindings as it was bound/imported in current module.

Designed specially for providing module binds/imports to single units with unit-specific data.

For example, it can be used to provide http request data and parent module defined services to the controller class

Type Parameters

Hierarchy (view full)

Constructors

Properties

aliases: Map<TBindKey, TBindKey> = ...
bindManger: BindManager<FiberModule<PM>> = ...
config?: void
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
parentModule: PM
__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

  • 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>