Search
Preparing search index...
The search index is not available
@nestjs/common
Options
All
Public
Public/Protected
All
Inherited
Externals
Only exported
Menu
Globals
InstanceWrapper
Class InstanceWrapper<T>
Type parameters
T
Hierarchy
InstanceWrapper
Index
Constructors
constructor
Properties
__computed
async
forward
Ref
host
inject
is
Tree
Static
metatype
name
scope
transient
Map
values
Accessors
id
instance
is
Not
Metatype
is
Transient
Methods
add
Ctor
Metadata
add
Enhancer
Metadata
add
Properties
Metadata
clone
Static
Instance
clone
Transient
Instance
create
Prototype
get
Ctor
Metadata
get
Enhancers
Metadata
get
Instance
ByContext
Id
get
Instance
ByInquirer
Id
get
Properties
Metadata
get
Static
Transient
Instances
initialize
is
Dependency
Tree
Static
is
InRequest
Scope
is
Lazy
Transient
is
Newable
is
Static
is
Wrapper
List
Static
set
Instance
ByContext
Id
set
Instance
ByInquirer
Id
Constructors
constructor
new
Instance
Wrapper
(
metadata
?:
Partial
<
InstanceWrapper
<
T
>
>
&
Partial
<
InstancePerContext
<
T
>
>
)
:
InstanceWrapper
Parameters
Default value
metadata:
Partial
<
InstanceWrapper
<
T
>
>
&
Partial
<
InstancePerContext
<
T
>
>
= {}
Returns
InstanceWrapper
Properties
Private
__computed
__computed
:
string
Optional
async
async
:
boolean
Optional
forward
Ref
forward
Ref
:
boolean
Optional
host
host
:
Module
Optional
inject
inject
:
any
[]
Private
is
Tree
Static
is
Tree
Static
:
boolean
|
undefined
metatype
metatype
:
Type
<
T
>
name
name
:
any
Optional
scope
scope
:
Scope
= Scope.DEFAULT
Private
Optional
transient
Map
transient
Map
:
Map
<
string
,
WeakMap
<
ContextId
,
InstancePerContext
<
T
>
>
>
|
undefined
Private
values
values
:
any
= new WeakMap<ContextId, InstancePerContext<T>>()
Accessors
id
get
id
(
)
:
string
Returns
string
instance
get
instance
(
)
:
T
set
instance
(
value
:
T
)
:
void
Returns
T
Parameters
value:
T
Returns
void
is
Not
Metatype
get
isNotMetatype
(
)
:
boolean
Returns
boolean
is
Transient
get
isTransient
(
)
:
boolean
Returns
boolean
Methods
add
Ctor
Metadata
add
Ctor
Metadata
(
index
:
number
, wrapper
:
InstanceWrapper
)
:
void
Parameters
index:
number
wrapper:
InstanceWrapper
Returns
void
add
Enhancer
Metadata
add
Enhancer
Metadata
(
wrapper
:
InstanceWrapper
)
:
void
Parameters
wrapper:
InstanceWrapper
Returns
void
add
Properties
Metadata
add
Properties
Metadata
(
key
:
string
, wrapper
:
InstanceWrapper
)
:
void
Parameters
key:
string
wrapper:
InstanceWrapper
Returns
void
clone
Static
Instance
clone
Static
Instance
(
contextId
:
ContextId
)
:
InstancePerContext
<
T
>
Parameters
contextId:
ContextId
Returns
InstancePerContext
<
T
>
clone
Transient
Instance
clone
Transient
Instance
(
contextId
:
ContextId
, inquirerId
:
string
)
:
InstancePerContext
<
T
>
Parameters
contextId:
ContextId
inquirerId:
string
Returns
InstancePerContext
<
T
>
create
Prototype
create
Prototype
(
contextId
:
ContextId
)
:
any
Parameters
contextId:
ContextId
Returns
any
get
Ctor
Metadata
get
Ctor
Metadata
(
)
:
InstanceWrapper
[]
Returns
InstanceWrapper
[]
get
Enhancers
Metadata
get
Enhancers
Metadata
(
)
:
InstanceWrapper
[]
Returns
InstanceWrapper
[]
get
Instance
ByContext
Id
get
Instance
ByContext
Id
(
contextId
:
ContextId
, inquirerId
?:
string
)
:
InstancePerContext
<
T
>
Parameters
contextId:
ContextId
Optional
inquirerId:
string
Returns
InstancePerContext
<
T
>
get
Instance
ByInquirer
Id
get
Instance
ByInquirer
Id
(
contextId
:
ContextId
, inquirerId
:
string
)
:
InstancePerContext
<
T
>
Parameters
contextId:
ContextId
inquirerId:
string
Returns
InstancePerContext
<
T
>
get
Properties
Metadata
get
Properties
Metadata
(
)
:
PropertyMetadata
[]
Returns
PropertyMetadata
[]
get
Static
Transient
Instances
get
Static
Transient
Instances
(
)
:
any
[]
Returns
any
[]
Private
initialize
initialize
(
metadata
:
Partial
<
InstanceWrapper
<
T
>
>
&
Partial
<
InstancePerContext
<
T
>
>
)
:
void
Parameters
metadata:
Partial
<
InstanceWrapper
<
T
>
>
&
Partial
<
InstancePerContext
<
T
>
>
Returns
void
is
Dependency
Tree
Static
is
Dependency
Tree
Static
(
lookupRegistry
?:
string
[]
)
:
boolean
Parameters
Default value
lookupRegistry:
string
[]
= []
Returns
boolean
is
InRequest
Scope
is
InRequest
Scope
(
contextId
:
ContextId
, inquirer
?:
InstanceWrapper
|
undefined
)
:
boolean
Parameters
contextId:
ContextId
Optional
inquirer:
InstanceWrapper
|
undefined
Returns
boolean
is
Lazy
Transient
is
Lazy
Transient
(
contextId
:
ContextId
, inquirer
:
InstanceWrapper
|
undefined
)
:
boolean
Parameters
contextId:
ContextId
inquirer:
InstanceWrapper
|
undefined
Returns
boolean
Private
is
Newable
is
Newable
(
)
:
boolean
Returns
boolean
is
Static
is
Static
(
contextId
:
ContextId
, inquirer
:
InstanceWrapper
|
undefined
)
:
boolean
Parameters
contextId:
ContextId
inquirer:
InstanceWrapper
|
undefined
Returns
boolean
Private
is
Wrapper
List
Static
is
Wrapper
List
Static
(
tree
:
InstanceWrapper
[]
, lookupRegistry
:
string
[]
)
:
boolean
Parameters
tree:
InstanceWrapper
[]
lookupRegistry:
string
[]
Returns
boolean
set
Instance
ByContext
Id
set
Instance
ByContext
Id
(
contextId
:
ContextId
, value
:
InstancePerContext
<
T
>
, inquirerId
?:
string
)
:
void
Parameters
contextId:
ContextId
value:
InstancePerContext
<
T
>
Optional
inquirerId:
string
Returns
void
set
Instance
ByInquirer
Id
set
Instance
ByInquirer
Id
(
contextId
:
ContextId
, inquirerId
:
string
, value
:
InstancePerContext
<
T
>
)
:
void
Parameters
contextId:
ContextId
inquirerId:
string
value:
InstancePerContext
<
T
>
Returns
void
Globals
Instance
Wrapper
constructor
__computed
async
forward
Ref
host
inject
is
Tree
Static
metatype
name
scope
transient
Map
values
id
instance
is
Not
Metatype
is
Transient
add
Ctor
Metadata
add
Enhancer
Metadata
add
Properties
Metadata
clone
Static
Instance
clone
Transient
Instance
create
Prototype
get
Ctor
Metadata
get
Enhancers
Metadata
get
Instance
ByContext
Id
get
Instance
ByInquirer
Id
get
Properties
Metadata
get
Static
Transient
Instances
initialize
is
Dependency
Tree
Static
is
InRequest
Scope
is
Lazy
Transient
is
Newable
is
Static
is
Wrapper
List
Static
set
Instance
ByContext
Id
set
Instance
ByInquirer
Id
Generated using
TypeDoc