ReflectiveKeylink
A unique object used for retrieving items from the ReflectiveInjector
.
弃用说明
No replacement
说明
Keys have:
- a system-wide unique
id
. - a
token
.
Key
is used internally by ReflectiveInjector
because its system-wide unique id
allows the injector to store created objects in a more efficient way.
Key
should not be created directly. ReflectiveInjector
creates keys automatically when resolving providers.
静态属性
属性名 | 类型 | 说明 |
---|---|---|
numberOfKeys | 只读 |
静态方法
Retrieves a | ||
参数
返回值 |
构造函数
Private | ||||
参数
|
属性
属性名 | 类型 | 说明 |
---|---|---|
displayName | 只读 | |
token | 声明于构造函数中 | |
id | 声明于构造函数中 |