Options
All
  • Public
  • Public/Protected
  • All
Menu

Class NestContainer

Hierarchy

  • NestContainer

Index

Constructors

constructor

  • Parameters

    • Default value _applicationConfig: any = undefined

    Returns NestContainer

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

  • get applicationConfig(): ApplicationConfig | undefined

Methods

addController

  • addController(controller: any, token: any): void
  • Parameters

    • controller: any
    • token: any

    Returns void

addDynamicMetadata

  • addDynamicMetadata(token: any, dynamicModuleMetadata: any, scope: any): Promise<void>
  • Parameters

    • token: any
    • dynamicModuleMetadata: any
    • scope: any

    Returns Promise<void>

addDynamicModules

  • addDynamicModules(modules: any, scope: any): Promise<void>
  • Parameters

    • modules: any
    • scope: any

    Returns Promise<void>

addExportedProvider

  • addExportedProvider(provider: any, token: any): void
  • Parameters

    • provider: any
    • token: any

    Returns void

addGlobalModule

  • addGlobalModule(module: any): void
  • Parameters

    • module: any

    Returns void

addImport

  • addImport(relatedModule: any, token: any): Promise<void>
  • Parameters

    • relatedModule: any
    • token: any

    Returns Promise<void>

addInjectable

  • addInjectable(injectable: any, token: any, host: any): void
  • Parameters

    • injectable: any
    • token: any
    • host: any

    Returns void

addModule

  • addModule(metatype: any, scope: any): Promise<Module>
  • Parameters

    • metatype: any
    • scope: any

    Returns Promise<Module>

addProvider

  • addProvider(provider: any, token: any): string
  • Parameters

    • provider: any
    • token: any

    Returns string

bindGlobalModuleToModule

  • bindGlobalModuleToModule(target: any, globalModule: any): void
  • Parameters

    • target: any
    • globalModule: any

    Returns void

bindGlobalScope

  • bindGlobalScope(): void
  • Returns void

bindGlobalsToImports

  • bindGlobalsToImports(moduleRef: any): void
  • Parameters

    • moduleRef: any

    Returns void

clear

  • clear(): void
  • Returns void

createCoreModule

  • createCoreModule(): DynamicModule
  • Returns DynamicModule

getDynamicMetadataByToken

  • getDynamicMetadataByToken(token: any, metadataKey: any): any
  • Parameters

    • token: any
    • metadataKey: any

    Returns any

getHttpAdapterRef

  • getHttpAdapterRef(): AbstractHttpAdapter<any, any, any>
  • Returns AbstractHttpAdapter<any, any, any>

getInternalCoreModuleRef

  • getInternalCoreModuleRef(): any
  • Returns any

getModuleByKey

  • getModuleByKey(moduleKey: any): Module
  • Parameters

    • moduleKey: any

    Returns Module

getModuleTokenFactory

  • getModuleTokenFactory(): ModuleTokenFactory
  • Returns ModuleTokenFactory

getModules

  • getModules(): ModulesContainer
  • Returns ModulesContainer

isGlobalModule

  • isGlobalModule(metatype: any, dynamicMetadata: any): boolean
  • Parameters

    • metatype: any
    • dynamicMetadata: any

    Returns boolean

registerCoreModuleRef

  • registerCoreModuleRef(moduleRef: any): void
  • Parameters

    • moduleRef: any

    Returns void

registerRequestProvider

  • registerRequestProvider(request: any, contextId: any): void
  • Parameters

    • request: any
    • contextId: any

    Returns void

replace

  • replace(toReplace: any, options: any): void
  • Parameters

    • toReplace: any
    • options: any

    Returns void

setHttpAdapter

  • setHttpAdapter(httpAdapter: any): void
  • Parameters

    • httpAdapter: any

    Returns void

Generated using TypeDoc