Options
All
  • Public
  • Public/Protected
  • All
Menu

Class DependenciesScanner

Hierarchy

  • DependenciesScanner

Index

Constructors

constructor

Properties

Private Readonly applicationConfig

applicationConfig: ApplicationConfig

Private Readonly applicationProvidersApplyMap

applicationProvidersApplyMap: ApplicationProviderWrapper[] = []

Private Readonly container

container: NestContainer

Private Readonly metadataScanner

metadataScanner: MetadataScanner

Methods

addScopedEnhancersMetadata

  • addScopedEnhancersMetadata(): void
  • Add either request or transient globally scoped enhancers to all controllers metadata storage

    Returns void

applyApplicationProviders

  • applyApplicationProviders(): void

calculateModulesDistance

Private flatten

  • flatten<T>(arr: T[][]): 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>

insertInjectable

insertModule

  • insertModule(module: any, scope: Type<unknown>[]): Promise<Module>

insertProvider

  • insertProvider(provider: Provider, token: string): string | void

isCustomProvider

  • isCustomProvider(provider: Provider): provider is ClassProvider | ValueProvider | FactoryProvider | ExistingProvider

isDynamicModule

  • isDynamicModule(module: Type<any> | DynamicModule): 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

reflectControllers

  • reflectControllers(module: Type<any>, token: string): void

reflectDynamicMetadata

  • reflectDynamicMetadata(obj: Type<Injectable>, token: string): void

reflectExports

  • reflectExports(module: Type<unknown>, token: string): void

reflectImports

  • reflectImports(module: Type<unknown>, token: string, context: string): Promise<void>

reflectInjectables

  • reflectInjectables(component: Type<Injectable>, token: string, metadataKey: string): void

reflectKeyMetadata

  • reflectKeyMetadata(component: Type<Injectable>, key: string, method: string): any

reflectMetadata

  • reflectMetadata(metatype: Type<any>, metadataKey: string): any

reflectParamInjectables

  • reflectParamInjectables(component: Type<Injectable>, token: string, metadataKey: string): void

reflectProviders

  • reflectProviders(module: Type<any>, token: string): void

registerCoreModule

  • registerCoreModule(): Promise<void>

scan

  • scan(module: Type<any>): 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>

Generated using TypeDoc