Class: ModuleWrapper
Wraps a module’s metadata and DI state for internal management. Handles providers, controllers, imports, and exports for a single module.
Accessors
controllers
Get Signature
get controllers():
Set
<Type
<unknown
>>
Gets the set of controller classes declared in this module.
Returns
Set
<Type
<unknown
>>
exports
Get Signature
get exports():
Set
<Token
>
Gets the set of tokens this module exports.
Returns
Set
<Token
>
imports
Get Signature
get imports():
Set
<ModuleWrapper
>
Gets the set of modules imported by this module.
Returns
Set
<ModuleWrapper
>
Constructors
Constructor
new ModuleWrapper(
type
,metadata
):ModuleWrapper
Creates a new ModuleWrapper.
Parameters
type
The module’s class constructor.
metadata
The metadata extracted from the
Returns
ModuleWrapper
Module
decorator, including imports, controllers, providers, and exports.
Methods
addImport()
addImport(
importedModule
):void
Adds an imported module to this module’s import graph.
Parameters
importedModule
ModuleWrapper
The ModuleWrapper instance to import.
Returns
void
Properties
container
readonly
container:Container
The DI container instance scoped to this module. Initially holds provider definitions, later replaced with their instantiated values.
metadata
readonly
metadata:ModuleMetadata
The metadata extracted from the
type
readonly
type:Type
The module’s class constructor.