ModuleInstance
@agros/tools / ModuleInstance
Class: ModuleInstance
Table of contents
Constructors
Properties
Methods
- addImportedModuleInstance
- generateProviderValues
- getImportedModuleInstances
- getProviderClasses
- getProviderValue
- hasDependedProviderClass
- setValueProviderItem
Constructors
constructor
• new ModuleInstance(metadata, globalModuleInstances)
Parameters
| Name | Type |
|---|---|
metadata | ModuleInstanceMetadata |
globalModuleInstances | Set<ModuleInstance> |
Defined in
packages/agros-tools/src/module-instance.class.ts:19
Properties
importedModuleInstances
• Private importedModuleInstances: Set<ModuleInstance>
Defined in
packages/agros-tools/src/module-instance.class.ts:12
metadata
• Readonly metadata: ModuleInstanceMetadata
Defined in
packages/agros-tools/src/module-instance.class.ts:20
valueProviderMap
• Private valueProviderMap: Map<string, any>
Defined in
packages/agros-tools/src/module-instance.class.ts:13
Methods
addImportedModuleInstance
▸ addImportedModuleInstance(moduleInstance): void
Parameters
| Name | Type |
|---|---|
moduleInstance | ModuleInstance |
Returns
void
Defined in
packages/agros-tools/src/module-instance.class.ts:24
generateProviderValues
▸ generateProviderValues(context): Promise<void>
Parameters
| Name | Type |
|---|---|
context | Factory |
Returns
Promise<void>
Defined in
packages/agros-tools/src/module-instance.class.ts:72
getImportedModuleInstances
▸ getImportedModuleInstances(): Set<ModuleInstance>
Returns
Set<ModuleInstance>
Defined in
packages/agros-tools/src/module-instance.class.ts:34
getProviderClasses
▸ getProviderClasses(): Set<Type<any>>
get provider classes recursively from imported modules
Returns
Set<Type<any>>
Defined in
packages/agros-tools/src/module-instance.class.ts:42
getProviderValue
▸ getProviderValue<T>(key): T
Type parameters
| Name | Type |
|---|---|
T | any |
Parameters
| Name | Type |
|---|---|
key | string |
Returns
T
Defined in
packages/agros-tools/src/module-instance.class.ts:80
hasDependedProviderClass
▸ hasDependedProviderClass(ProviderClass): boolean
Parameters
| Name | Type |
|---|---|
ProviderClass | Type<any> |
Returns
boolean
Defined in
packages/agros-tools/src/module-instance.class.ts:64
setValueProviderItem
▸ setValueProviderItem(key, value): void
Parameters
| Name | Type |
|---|---|
key | string |
value | any |
Returns
void