Search
Preparing search index...
The search index is not available
@nestjs/common
Options
All
Public
Public/Protected
All
Inherited
Externals
Only exported
Menu
Globals
NestContainer
Class NestContainer
Hierarchy
NestContainer
Index
Constructors
constructor
Properties
_application
Config
dynamic
Modules
Metadata
global
Modules
internal
Core
Module
internal
Providers
Storage
module
Compiler
modules
Accessors
application
Config
Methods
add
Controller
add
Dynamic
Metadata
add
Dynamic
Modules
add
Exported
Provider
add
Global
Module
add
Import
add
Injectable
add
Module
add
Provider
bind
Global
Module
ToModule
bind
Global
Scope
bind
Globals
ToImports
clear
create
Core
Module
get
Dynamic
Metadata
ByToken
get
Http
Adapter
Ref
get
Internal
Core
Module
Ref
get
Module
ByKey
get
Modules
is
Global
Module
register
Core
Module
Ref
replace
set
Http
Adapter
Constructors
constructor
new
Nest
Container
(
_applicationConfig
?:
ApplicationConfig
)
:
NestContainer
Parameters
Default value
_applicationConfig:
ApplicationConfig
= undefined
Returns
NestContainer
Properties
Private
_application
Config
_application
Config
:
ApplicationConfig
Private
dynamic
Modules
Metadata
dynamic
Modules
Metadata
:
any
= new Map<string,Partial<DynamicModule>>()
Private
global
Modules
global
Modules
:
any
= new Set<Module>()
Private
internal
Core
Module
internal
Core
Module
:
Module
Private
internal
Providers
Storage
internal
Providers
Storage
:
InternalProvidersStorage
= new InternalProvidersStorage()
Private
module
Compiler
module
Compiler
:
ModuleCompiler
= new ModuleCompiler()
Private
modules
modules
:
ModulesContainer
= new ModulesContainer()
Accessors
application
Config
get
applicationConfig
(
)
:
ApplicationConfig
|
undefined
Returns
ApplicationConfig
|
undefined
Methods
add
Controller
add
Controller
(
controller
:
Type
<
any
>
, token
:
string
)
:
void
Parameters
controller:
Type
<
any
>
token:
string
Returns
void
add
Dynamic
Metadata
add
Dynamic
Metadata
(
token
:
string
, dynamicModuleMetadata
:
Partial
<
DynamicModule
>
, scope
:
Type
<
any
>
[]
)
:
void
Parameters
token:
string
dynamicModuleMetadata:
Partial
<
DynamicModule
>
scope:
Type
<
any
>
[]
Returns
void
add
Dynamic
Modules
add
Dynamic
Modules
(
modules
:
any
[]
, scope
:
Type
<
any
>
[]
)
:
void
Parameters
modules:
any
[]
scope:
Type
<
any
>
[]
Returns
void
add
Exported
Provider
add
Exported
Provider
(
provider
:
Type
<
any
>
, token
:
string
)
:
void
Parameters
provider:
Type
<
any
>
token:
string
Returns
void
add
Global
Module
add
Global
Module
(
module
:
Module
)
:
void
Parameters
module:
Module
Returns
void
add
Import
add
Import
(
relatedModule
:
Type
<
any
>
|
DynamicModule
, token
:
string
)
:
Promise
<
void
>
Parameters
relatedModule:
Type
<
any
>
|
DynamicModule
token:
string
Returns
Promise
<
void
>
add
Injectable
add
Injectable
(
injectable
:
Type
<
any
>
, token
:
string
, host
:
Type
<
Injectable
>
)
:
void
Parameters
injectable:
Type
<
any
>
token:
string
host:
Type
<
Injectable
>
Returns
void
add
Module
add
Module
(
metatype
:
Type
<
any
>
|
DynamicModule
|
Promise
<
DynamicModule
>
, scope
:
Type
<
any
>
[]
)
:
Promise
<
Module
>
Parameters
metatype:
Type
<
any
>
|
DynamicModule
|
Promise
<
DynamicModule
>
scope:
Type
<
any
>
[]
Returns
Promise
<
Module
>
add
Provider
add
Provider
(
provider
:
Type
<
any
>
, token
:
string
)
:
string
Parameters
provider:
Type
<
any
>
token:
string
Returns
string
bind
Global
Module
ToModule
bind
Global
Module
ToModule
(
target
:
Module
, globalModule
:
Module
)
:
void
Parameters
target:
Module
globalModule:
Module
Returns
void
bind
Global
Scope
bind
Global
Scope
(
)
:
void
Returns
void
bind
Globals
ToImports
bind
Globals
ToImports
(
module
:
Module
)
:
void
Parameters
module:
Module
Returns
void
clear
clear
(
)
:
void
Returns
void
create
Core
Module
create
Core
Module
(
)
:
DynamicModule
Returns
DynamicModule
get
Dynamic
Metadata
ByToken
get
Dynamic
Metadata
ByToken
(
token
:
string
, metadataKey
:
keyof DynamicModule
)
:
any
[]
Parameters
token:
string
metadataKey:
keyof DynamicModule
Returns
any
[]
get
Http
Adapter
Ref
get
Http
Adapter
Ref
(
)
:
any
Returns
any
get
Internal
Core
Module
Ref
get
Internal
Core
Module
Ref
(
)
:
Module
|
undefined
Returns
Module
|
undefined
get
Module
ByKey
get
Module
ByKey
(
moduleKey
:
string
)
:
Module
Parameters
moduleKey:
string
Returns
Module
get
Modules
get
Modules
(
)
:
ModulesContainer
Returns
ModulesContainer
is
Global
Module
is
Global
Module
(
metatype
:
Type
<
any
>
)
:
boolean
Parameters
metatype:
Type
<
any
>
Returns
boolean
register
Core
Module
Ref
register
Core
Module
Ref
(
moduleRef
:
Module
)
:
void
Parameters
moduleRef:
Module
Returns
void
replace
replace
(
toReplace
:
any
, options
:
any
&
object
)
:
void
Parameters
toReplace:
any
options:
any
&
object
Returns
void
set
Http
Adapter
set
Http
Adapter
(
httpAdapter
:
any
)
:
void
Parameters
httpAdapter:
any
Returns
void
Globals
Nest
Container
constructor
_application
Config
dynamic
Modules
Metadata
global
Modules
internal
Core
Module
internal
Providers
Storage
module
Compiler
modules
application
Config
add
Controller
add
Dynamic
Metadata
add
Dynamic
Modules
add
Exported
Provider
add
Global
Module
add
Import
add
Injectable
add
Module
add
Provider
bind
Global
Module
ToModule
bind
Global
Scope
bind
Globals
ToImports
clear
create
Core
Module
get
Dynamic
Metadata
ByToken
get
Http
Adapter
Ref
get
Internal
Core
Module
Ref
get
Module
ByKey
get
Modules
is
Global
Module
register
Core
Module
Ref
replace
set
Http
Adapter
Generated using
TypeDoc