Class DependenciesScanner
Constructors
constructor
- new DependenciesScanner(container: any, metadataScanner: any, applicationConfig?: ApplicationConfig): DependenciesScanner
-
Parameters
-
container: any
-
metadataScanner: any
-
Default value applicationConfig: ApplicationConfig = new application_config_1.ApplicationConfig()
Methods
addScopedEnhancersMetadata
- addScopedEnhancersMetadata(): void
-
Returns void
applyApplicationProviders
- applyApplicationProviders(): void
-
Returns void
calculateModulesDistance
- calculateModulesDistance(modules: any): Promise<void>
-
Parameters
Returns Promise<void>
flatten
-
Parameters
Returns any
getApplyProvidersMap
- getApplyProvidersMap(): { [constants_2.APP_FILTER]: any; [constants_2.APP_GUARD]: any; [constants_2.APP_INTERCEPTOR]: any; [constants_2.APP_PIPE]: any }
-
Returns { [constants_2.APP_FILTER]: any; [constants_2.APP_GUARD]: any; [constants_2.APP_INTERCEPTOR]: any; [constants_2.APP_PIPE]: any }
-
[constants_2.APP_FILTER]: function
- [constants_2.APP_FILTER](filter: any): void
-
Parameters
Returns void
-
[constants_2.APP_GUARD]: function
- [constants_2.APP_GUARD](guard: any): void
-
Parameters
Returns void
-
[constants_2.APP_INTERCEPTOR]: function
- [constants_2.APP_INTERCEPTOR](interceptor: any): void
-
Parameters
Returns void
-
[constants_2.APP_PIPE]: function
- [constants_2.APP_PIPE](pipe: any): void
-
Parameters
Returns void
getApplyRequestProvidersMap
- getApplyRequestProvidersMap(): { [constants_2.APP_FILTER]: any; [constants_2.APP_GUARD]: any; [constants_2.APP_INTERCEPTOR]: any; [constants_2.APP_PIPE]: any }
-
Returns { [constants_2.APP_FILTER]: any; [constants_2.APP_GUARD]: any; [constants_2.APP_INTERCEPTOR]: any; [constants_2.APP_PIPE]: any }
-
[constants_2.APP_FILTER]: function
- [constants_2.APP_FILTER](filter: any): void
-
Parameters
Returns void
-
[constants_2.APP_GUARD]: function
- [constants_2.APP_GUARD](guard: any): void
-
Parameters
Returns void
-
[constants_2.APP_INTERCEPTOR]: function
- [constants_2.APP_INTERCEPTOR](interceptor: any): void
-
Parameters
Returns void
-
[constants_2.APP_PIPE]: function
- [constants_2.APP_PIPE](pipe: any): void
-
Parameters
Returns void
insertController
- insertController(controller: any, token: any): void
-
Parameters
-
controller: any
-
token: any
Returns void
insertExportedProvider
- insertExportedProvider(exportedProvider: any, token: any): void
-
Parameters
-
exportedProvider: any
-
token: any
Returns void
insertImport
- insertImport(related: any, token: any, context: any): Promise<any>
-
Parameters
-
related: any
-
token: any
-
context: any
Returns Promise<any>
insertInjectable
- insertInjectable(injectable: any, token: any, host: any): void
-
Parameters
-
injectable: any
-
token: any
-
host: any
Returns void
insertModule
- insertModule(module: any, scope: any): Promise<any>
-
Parameters
Returns Promise<any>
insertProvider
- insertProvider(provider: any, token: any): any
-
Parameters
Returns any
isCustomProvider
- isCustomProvider(provider: any): boolean
-
Parameters
Returns boolean
isDynamicModule
- isDynamicModule(module: any): boolean
-
Parameters
Returns boolean
isForwardReference
- isForwardReference(module: any): boolean
-
Parameters
Returns boolean
isRequestOrTransient
- isRequestOrTransient(scope: any): boolean
-
Parameters
Returns boolean
reflectControllers
- reflectControllers(module: any, token: any): void
-
Parameters
Returns void
reflectDynamicMetadata
- reflectDynamicMetadata(obj: any, token: any): void
-
Parameters
Returns void
reflectExports
- reflectExports(module: any, token: any): void
-
Parameters
Returns void
reflectImports
- reflectImports(module: any, token: any, context: any): Promise<void>
-
Parameters
-
module: any
-
token: any
-
context: any
Returns Promise<void>
reflectInjectables
- reflectInjectables(component: any, token: any, metadataKey: any): void
-
Parameters
-
component: any
-
token: any
-
metadataKey: any
Returns void
reflectKeyMetadata
- reflectKeyMetadata(component: any, key: any, method: any): any
-
Parameters
-
component: any
-
key: any
-
method: any
Returns any
reflectMetadata
- reflectMetadata(metatype: any, metadataKey: any): any
-
Parameters
-
metatype: any
-
metadataKey: any
Returns any
reflectParamInjectables
- reflectParamInjectables(component: any, token: any, metadataKey: any): void
-
Parameters
-
component: any
-
token: any
-
metadataKey: any
Returns void
reflectProviders
- reflectProviders(module: any, token: any): void
-
Parameters
Returns void
registerCoreModule
- registerCoreModule(): Promise<void>
-
Returns Promise<void>
scan
- scan(module: any): Promise<void>
-
Parameters
Returns Promise<void>
scanForModules
- scanForModules(module: any, scope?: any[], ctxRegistry?: any[]): Promise<any>
-
Parameters
-
module: any
-
Default value scope: any[] = []
-
Default value ctxRegistry: any[] = []
Returns Promise<any>
scanModulesForDependencies
- scanModulesForDependencies(): Promise<void>
-
Returns Promise<void>
Add either request or transient globally scoped enhancers to all controllers metadata storage