Preparing search index...
The search index is not available
cardstack
cardstack
@cardstack/di
Container
Class Container
Hierarchy
Container
Implements
ContainerInterface
Index
Constructors
constructor
Properties
cache
tearing
Down
registry
Methods
lookup
_lookup
lookup
Factory
instantiate
provide
Injections
teardown
Constructors
constructor
new
Container
(
registry
:
Registry
)
:
Container
Parameters
registry:
Registry
Returns
Container
Properties
Private
cache
cache
:
Map
<
string
,
CacheEntry
<
unknown
>
>
= ...
Private
tearing
Down
tearing
Down
:
undefined
|
Deferred
<
void
>
Private
registry
registry
:
Registry
Methods
lookup
lookup
<
Name
,
Type
>
(
name
:
Name
, opts
?:
{
type
:
Type
;
}
)
:
Promise
<
TypedKnownServices
[
Type
]
[
Name
]
>
Type Parameters
Name
extends
string
|
number
|
symbol
Type
extends
keyof
TypedKnownServices
=
"default"
Parameters
name:
Name
Optional
opts:
{
type
:
Type
;
}
type
:
Type
Returns
Promise
<
TypedKnownServices
[
Type
]
[
Name
]
>
lookup
(
name
:
string
)
:
Promise
<
unknown
>
Parameters
name:
string
Returns
Promise
<
unknown
>
Private
_lookup
_lookup
(
name
:
string
, type
:
string
)
:
CacheEntry
<
unknown
>
Parameters
name:
string
type:
string
Returns
CacheEntry
<
unknown
>
Private
lookup
Factory
lookup
Factory
(
name
:
string
, type
:
string
)
:
Promise
<
Factory
<
any
,
[
]
>
>
Parameters
name:
string
type:
string
Returns
Promise
<
Factory
<
any
,
[
]
>
>
instantiate
instantiate
<
T
,
A
>
(
factory
:
Factory
<
T
,
A
>
,
...
args
:
A
)
:
Promise
<
T
>
Type Parameters
T
A
extends
unknown
[]
Parameters
factory:
Factory
<
T
,
A
>
Rest
...
args:
A
Returns
Promise
<
T
>
Private
provide
Injections
provide
Injections
<
FindResult
,
Instance
>
(
instantiator
:
Instantiator
<
FindResult
,
Instance
>
, cacheKey
?:
string
)
:
CacheEntry
<
Instance
>
Type Parameters
FindResult
Instance
Parameters
instantiator:
Instantiator
<
FindResult
,
Instance
>
Optional
cacheKey:
string
Returns
CacheEntry
<
Instance
>
teardown
teardown
(
)
:
Promise
<
void
>
Returns
Promise
<
void
>
Settings
Member Visibility
Protected
Private
Inherited
External
Theme
OS
Light
Dark
Modules
cardstack
@cardstack/cardpay-
sdk -
v1.0.53
@cardstack/db -
v1.0.53
@cardstack/di -
v1.0.53
@cardstack/did-
resolver -
v1.0.53
@cardstack/discord-
bot -
v1.0.53
@cardstack/wc-
provider -
v1.0.53
Container
constructor
cache
tearing
Down
registry
lookup
_lookup
lookup
Factory
instantiate
provide
Injections
teardown
Generated using
TypeDoc