Options
All
  • Public
  • Public/Protected
  • All
Menu

Class Injector

Hierarchy

  • Injector

Index

Methods

addDependencyMetadata

  • addDependencyMetadata(keyOrIndex: any, hostWrapper: any, instanceWrapper: any): void
  • Parameters

    • keyOrIndex: any
    • hostWrapper: any
    • instanceWrapper: any

    Returns void

applyDoneHook

  • applyDoneHook(wrapper: any): undefined
  • Parameters

    • wrapper: any

    Returns undefined

applyProperties

  • applyProperties(instance: any, properties: any): any
  • Parameters

    • instance: any
    • properties: any

    Returns any

getInquirerId

  • getInquirerId(inquirer: any): any
  • Parameters

    • inquirer: any

    Returns any

instantiateClass

  • instantiateClass(instances: any, wrapper: any, targetMetatype: any, contextId?: ContextId, inquirer: any): Promise<any>
  • Parameters

    • instances: any
    • wrapper: any
    • targetMetatype: any
    • Default value contextId: ContextId = constants_2.STATIC_CONTEXT
    • inquirer: any

    Returns Promise<any>

isInquirer

  • isInquirer(param: any, parentInquirer: any): any
  • Parameters

    • param: any
    • parentInquirer: any

    Returns any

isInquirerRequest

  • isInquirerRequest(item: any, parentInquirer: any): any
  • Parameters

    • item: any
    • parentInquirer: any

    Returns any

loadController

  • loadController(wrapper: any, moduleRef: any, contextId?: ContextId): Promise<void>
  • Parameters

    • wrapper: any
    • moduleRef: any
    • Default value contextId: ContextId = constants_2.STATIC_CONTEXT

    Returns Promise<void>

loadCtorMetadata

  • loadCtorMetadata(metadata: any, contextId: any, inquirer: any, parentInquirer: any): Promise<any[]>
  • Parameters

    • metadata: any
    • contextId: any
    • inquirer: any
    • parentInquirer: any

    Returns Promise<any[]>

loadEnhancersPerContext

  • loadEnhancersPerContext(wrapper: any, ctx: any, inquirer: any): Promise<void>
  • Parameters

    • wrapper: any
    • ctx: any
    • inquirer: any

    Returns Promise<void>

loadInjectable

  • loadInjectable(wrapper: any, moduleRef: any, contextId?: ContextId, inquirer: any): Promise<void>
  • Parameters

    • wrapper: any
    • moduleRef: any
    • Default value contextId: ContextId = constants_2.STATIC_CONTEXT
    • inquirer: any

    Returns Promise<void>

loadInstance

  • loadInstance(wrapper: any, collection: any, moduleRef: any, contextId?: ContextId, inquirer: any): Promise<any>
  • Parameters

    • wrapper: any
    • collection: any
    • moduleRef: any
    • Default value contextId: ContextId = constants_2.STATIC_CONTEXT
    • inquirer: any

    Returns Promise<any>

loadMiddleware

  • loadMiddleware(wrapper: any, collection: any, moduleRef: any, contextId?: ContextId, inquirer: any): Promise<void>
  • Parameters

    • wrapper: any
    • collection: any
    • moduleRef: any
    • Default value contextId: ContextId = constants_2.STATIC_CONTEXT
    • inquirer: any

    Returns Promise<void>

loadPerContext

  • loadPerContext(instance: any, moduleRef: any, collection: any, ctx: any, wrapper: any): Promise<any>
  • Parameters

    • instance: any
    • moduleRef: any
    • collection: any
    • ctx: any
    • wrapper: any

    Returns Promise<any>

loadPropertiesMetadata

  • loadPropertiesMetadata(metadata: any, contextId: any, inquirer: any): Promise<{ instance: any; key: any; name: any }[]>
  • Parameters

    • metadata: any
    • contextId: any
    • inquirer: any

    Returns Promise<{ instance: any; key: any; name: any }[]>

loadPrototype

  • loadPrototype(__namedParameters: { name: any }, collection: any, contextId?: ContextId): void
  • Parameters

    • __namedParameters: { name: any }
      • name: any
    • collection: any
    • Default value contextId: ContextId = constants_2.STATIC_CONTEXT

    Returns void

loadProvider

  • loadProvider(wrapper: any, moduleRef: any, contextId?: ContextId, inquirer: any): Promise<void>
  • Parameters

    • wrapper: any
    • moduleRef: any
    • Default value contextId: ContextId = constants_2.STATIC_CONTEXT
    • inquirer: any

    Returns Promise<void>

lookupComponent

  • lookupComponent(providers: any, moduleRef: any, dependencyContext: any, wrapper: any, contextId?: ContextId, inquirer: any, keyOrIndex: any): Promise<any>
  • Parameters

    • providers: any
    • moduleRef: any
    • dependencyContext: any
    • wrapper: any
    • Default value contextId: ContextId = constants_2.STATIC_CONTEXT
    • inquirer: any
    • keyOrIndex: any

    Returns Promise<any>

lookupComponentInImports

  • lookupComponentInImports(moduleRef: any, name: any, wrapper: any, moduleRegistry?: any[], contextId?: ContextId, inquirer: any, keyOrIndex: any, isTraversing: any): any
  • Parameters

    • moduleRef: any
    • name: any
    • wrapper: any
    • Default value moduleRegistry: any[] = []
    • Default value contextId: ContextId = constants_2.STATIC_CONTEXT
    • inquirer: any
    • keyOrIndex: any
    • isTraversing: any

    Returns any

lookupComponentInParentModules

  • lookupComponentInParentModules(dependencyContext: any, moduleRef: any, wrapper: any, contextId?: ContextId, inquirer: any, keyOrIndex: any): Promise<any>
  • Parameters

    • dependencyContext: any
    • moduleRef: any
    • wrapper: any
    • Default value contextId: ContextId = constants_2.STATIC_CONTEXT
    • inquirer: any
    • keyOrIndex: any

    Returns Promise<any>

reflectConstructorParams

  • reflectConstructorParams(type: any): any
  • Parameters

    • type: any

    Returns any

reflectOptionalParams

  • reflectOptionalParams(type: any): any
  • Parameters

    • type: any

    Returns any

reflectProperties

  • reflectProperties(type: any): any
  • Parameters

    • type: any

    Returns any

reflectSelfParams

  • reflectSelfParams(type: any): any
  • Parameters

    • type: any

    Returns any

resolveComponentHost

  • resolveComponentHost(moduleRef: any, instanceWrapper: any, contextId?: ContextId, inquirer: any): Promise<any>
  • Parameters

    • moduleRef: any
    • instanceWrapper: any
    • Default value contextId: ContextId = constants_2.STATIC_CONTEXT
    • inquirer: any

    Returns Promise<any>

resolveComponentInstance

  • resolveComponentInstance(moduleRef: any, name: any, dependencyContext: any, wrapper: any, contextId?: ContextId, inquirer: any, keyOrIndex: any): Promise<any>
  • Parameters

    • moduleRef: any
    • name: any
    • dependencyContext: any
    • wrapper: any
    • Default value contextId: ContextId = constants_2.STATIC_CONTEXT
    • inquirer: any
    • keyOrIndex: any

    Returns Promise<any>

resolveConstructorParams

  • resolveConstructorParams(wrapper: any, moduleRef: any, inject: any, callback: any, contextId?: ContextId, inquirer: any, parentInquirer: any): Promise<any>
  • Parameters

    • wrapper: any
    • moduleRef: any
    • inject: any
    • callback: any
    • Default value contextId: ContextId = constants_2.STATIC_CONTEXT
    • inquirer: any
    • parentInquirer: any

    Returns Promise<any>

resolveParamToken

  • resolveParamToken(wrapper: any, param: any): any
  • Parameters

    • wrapper: any
    • param: any

    Returns any

resolveProperties

  • resolveProperties(wrapper: any, moduleRef: any, inject: any, contextId?: ContextId, inquirer: any, parentInquirer: any): Promise<any>
  • Parameters

    • wrapper: any
    • moduleRef: any
    • inject: any
    • Default value contextId: ContextId = constants_2.STATIC_CONTEXT
    • inquirer: any
    • parentInquirer: any

    Returns Promise<any>

resolveScopedComponentHost

  • resolveScopedComponentHost(item: any, contextId: any, inquirer: any, parentInquirer: any): any
  • Parameters

    • item: any
    • contextId: any
    • inquirer: any
    • parentInquirer: any

    Returns any

resolveSingleParam

  • resolveSingleParam(wrapper: any, param: any, dependencyContext: any, moduleRef: any, contextId?: ContextId, inquirer: any, keyOrIndex: any): Promise<any>
  • Parameters

    • wrapper: any
    • param: any
    • dependencyContext: any
    • moduleRef: any
    • Default value contextId: ContextId = constants_2.STATIC_CONTEXT
    • inquirer: any
    • keyOrIndex: any

    Returns Promise<any>

Generated using TypeDoc