Options
All
  • Public
  • Public/Protected
  • All
Menu

Class NestContainer

Hierarchy

  • NestContainer

Index

Constructors

constructor

Properties

Private Readonly _applicationConfig

_applicationConfig: ApplicationConfig

Private Readonly dynamicModulesMetadata

dynamicModulesMetadata: Map<string, Partial<DynamicModule>> = new Map<string,Partial<DynamicModule>>()

Private Readonly globalModules

globalModules: Set<Module> = new Set<Module>()

Private internalCoreModule

internalCoreModule: Module

Private Readonly internalProvidersStorage

internalProvidersStorage: InternalProvidersStorage = new InternalProvidersStorage()

Private Readonly moduleCompiler

moduleCompiler: ModuleCompiler = new ModuleCompiler(this.moduleTokenFactory)

Private Readonly moduleTokenFactory

moduleTokenFactory: ModuleTokenFactory = new ModuleTokenFactory()

Private Readonly modules

modules: ModulesContainer = new ModulesContainer()

Accessors

applicationConfig

Methods

addController

  • addController(controller: Type<any>, token: string): void

addDynamicMetadata

  • addDynamicMetadata(token: string, dynamicModuleMetadata: Partial<DynamicModule>, scope: Type<any>[]): Promise<void>

addDynamicModules

  • addDynamicModules(modules: any[], scope: Type<any>[]): Promise<void>

addExportedProvider

  • addExportedProvider(provider: Type<any>, token: string): void

addGlobalModule

  • addGlobalModule(module: Module): void

addImport

  • addImport(relatedModule: Type<any> | DynamicModule, token: string): Promise<void>

addInjectable

addModule

  • addModule(metatype: Type<any> | DynamicModule | Promise<DynamicModule>, scope: Type<any>[]): Promise<Module>

addProvider

  • addProvider(provider: Provider, token: string): string

bindGlobalModuleToModule

  • bindGlobalModuleToModule(target: Module, globalModule: Module): void

bindGlobalScope

  • bindGlobalScope(): void

bindGlobalsToImports

  • bindGlobalsToImports(moduleRef: Module): void

clear

  • clear(): void

createCoreModule

  • createCoreModule(): DynamicModule

getDynamicMetadataByToken

  • getDynamicMetadataByToken(token: string, metadataKey: keyof DynamicModule): any[]

getHttpAdapterRef

getInternalCoreModuleRef

  • getInternalCoreModuleRef(): Module | undefined

getModuleByKey

  • getModuleByKey(moduleKey: string): Module

getModuleTokenFactory

getModules

isGlobalModule

  • isGlobalModule(metatype: Type<any>, dynamicMetadata?: Partial<DynamicModule>): boolean

registerCoreModuleRef

  • registerCoreModuleRef(moduleRef: Module): void

registerRequestProvider

  • registerRequestProvider<T>(request: T, contextId: ContextId): void

replace

  • replace(toReplace: any, options: any & { scope: any[] | null }): void

setHttpAdapter

  • setHttpAdapter(httpAdapter: any): void

Generated using TypeDoc