Class DependenciesScanner
Properties
Private Readonly applicationConfig
Private Readonly applicationProvidersApplyMap
Private Readonly container
Private Readonly metadataScanner
Methods
addScopedEnhancersMetadata
- addScopedEnhancersMetadata(): void
applyApplicationProviders
- applyApplicationProviders(): void
calculateModulesDistance
-
Parameters
Returns Promise<void>
Private flatten
- flatten<T>(arr: T[][]): T[]
-
Type parameters
Parameters
Returns T[]
getApplyProvidersMap
- getApplyProvidersMap(): {}
getApplyRequestProvidersMap
- getApplyRequestProvidersMap(): {}
insertController
- insertController(controller: Type<Controller>, token: string): void
insertExportedProvider
- insertExportedProvider(exportedProvider: Type<Injectable>, token: string): void
insertImport
- insertImport(related: any, token: string, context: string): Promise<void>
-
Parameters
-
related: any
-
token: string
-
context: string
Returns Promise<void>
insertModule
- insertModule(module: any, scope: Type<unknown>[]): Promise<Module>
-
Parameters
-
module: any
-
scope: Type<unknown>[]
Returns Promise<Module>
insertProvider
- insertProvider(provider: Provider, token: string): string | void
-
Parameters
Returns string | void
isCustomProvider
- isCustomProvider(provider: Provider): provider is ClassProvider | ValueProvider | FactoryProvider | ExistingProvider
-
Parameters
Returns provider is ClassProvider | ValueProvider | FactoryProvider | ExistingProvider
isDynamicModule
- isDynamicModule(module: Type<any> | DynamicModule): module is DynamicModule
-
Parameters
-
module: Type<any> | DynamicModule
Returns module is DynamicModule
isForwardReference
- isForwardReference(module: Type<any> | DynamicModule | ForwardReference): module is ForwardReference
-
Parameters
-
module: Type<any> | DynamicModule | ForwardReference
Returns module is ForwardReference
Private isRequestOrTransient
- isRequestOrTransient(scope: Scope): boolean
-
Parameters
Returns boolean
reflectControllers
- reflectControllers(module: Type<any>, token: string): void
-
Parameters
-
module: Type<any>
-
token: string
Returns void
reflectDynamicMetadata
- reflectDynamicMetadata(obj: Type<Injectable>, token: string): void
reflectExports
- reflectExports(module: Type<unknown>, token: string): void
-
Parameters
-
module: Type<unknown>
-
token: string
Returns void
reflectImports
- reflectImports(module: Type<unknown>, token: string, context: string): Promise<void>
-
Parameters
-
module: Type<unknown>
-
token: string
-
context: string
Returns Promise<void>
reflectInjectables
- reflectInjectables(component: Type<Injectable>, token: string, metadataKey: string): void
-
Parameters
-
-
token: string
-
metadataKey: string
Returns void
reflectKeyMetadata
- reflectKeyMetadata(component: Type<Injectable>, key: string, method: string): any
-
Parameters
-
-
key: string
-
method: string
Returns any
reflectMetadata
- reflectMetadata(metatype: Type<any>, metadataKey: string): any
-
Parameters
-
metatype: Type<any>
-
metadataKey: string
Returns any
reflectParamInjectables
- reflectParamInjectables(component: Type<Injectable>, token: string, metadataKey: string): void
-
Parameters
-
-
token: string
-
metadataKey: string
Returns void
reflectProviders
- reflectProviders(module: Type<any>, token: string): void
-
Parameters
-
module: Type<any>
-
token: string
Returns void
registerCoreModule
- registerCoreModule(): Promise<void>
scan
- scan(module: Type<any>): Promise<void>
-
Parameters
Returns Promise<void>
scanForModules
- scanForModules(module: ForwardReference | Type<unknown> | DynamicModule, scope?: Type<unknown>[], ctxRegistry?: (ForwardReference | DynamicModule | Type<unknown>)[]): Promise<Module>
-
Parameters
-
module: ForwardReference | Type<unknown> | DynamicModule
-
Default value scope: Type<unknown>[] = []
-
Default value ctxRegistry: (ForwardReference | DynamicModule | Type<unknown>)[] = []
Returns Promise<Module>
scanModulesForDependencies
- scanModulesForDependencies(): Promise<void>
Add either request or transient globally scoped enhancers to all controllers metadata storage