Properties
Private Readonly _applicationConfig
Private Readonly dynamicModulesMetadata
dynamic
ModulesMetadata: Map<string, Partial<DynamicModule>> = new Map<string,Partial<DynamicModule>>()
Private Readonly globalModules
global
Modules: Set<Module> = new Set<Module>()
Private internalCoreModule
Private Readonly internalProvidersStorage
Private Readonly moduleCompiler
module
Compiler: ModuleCompiler = new ModuleCompiler(this.moduleTokenFactory)
Private Readonly moduleTokenFactory
Methods
addController
- addController(controller: Type<any>, token: string): void
-
Parameters
-
controller: Type<any>
-
token: string
Returns void
addDynamicMetadata
- addDynamicMetadata(token: string, dynamicModuleMetadata: Partial<DynamicModule>, scope: Type<any>[]): Promise<void>
-
Parameters
-
token: string
-
dynamicModuleMetadata: Partial<DynamicModule>
-
scope: Type<any>[]
Returns Promise<void>
addDynamicModules
- addDynamicModules(modules: any[], scope: Type<any>[]): Promise<void>
-
Parameters
-
modules: any[]
-
scope: Type<any>[]
Returns Promise<void>
addExportedProvider
- addExportedProvider(provider: Type<any>, token: string): void
-
Parameters
-
provider: Type<any>
-
token: string
Returns void
addGlobalModule
- addGlobalModule(module: Module): void
addImport
- addImport(relatedModule: Type<any> | DynamicModule, token: string): Promise<void>
-
Parameters
-
relatedModule: Type<any> | DynamicModule
-
token: string
Returns Promise<void>
addModule
- addModule(metatype: Type<any> | DynamicModule | Promise<DynamicModule>, scope: Type<any>[]): Promise<Module>
-
Parameters
-
metatype: Type<any> | DynamicModule | Promise<DynamicModule>
-
scope: Type<any>[]
Returns Promise<Module>
addProvider
- addProvider(provider: Provider, token: string): string
-
Parameters
Returns string
bindGlobalModuleToModule
- bindGlobalModuleToModule(target: Module, globalModule: Module): void
bindGlobalsToImports
- bindGlobalsToImports(moduleRef: Module): void
createCoreModule
- createCoreModule(): DynamicModule
getDynamicMetadataByToken
- getDynamicMetadataByToken(token: string, metadataKey: keyof DynamicModule): any[]
-
Parameters
-
token: string
-
metadataKey: keyof DynamicModule
Returns any[]
getInternalCoreModuleRef
- getInternalCoreModuleRef(): Module | undefined
getModuleByKey
- getModuleByKey(moduleKey: string): Module
isGlobalModule
- isGlobalModule(metatype: Type<any>, dynamicMetadata?: Partial<DynamicModule>): boolean
-
Parameters
-
metatype: Type<any>
-
Optional dynamicMetadata: Partial<DynamicModule>
Returns boolean
registerCoreModuleRef
- registerCoreModuleRef(moduleRef: Module): void
registerRequestProvider
- registerRequestProvider<T>(request: T, contextId: ContextId): void
-
Type parameters
Parameters
Returns void
replace
- replace(toReplace: any, options: any & { scope: any[] | null }): void
-
Parameters
-
toReplace: any
-
options: any & { scope: any[] | null }
Returns void
setHttpAdapter
- setHttpAdapter(httpAdapter: any): void