Options
All
  • Public
  • Public/Protected
  • All
Menu

Class InstanceWrapper<T>

Type parameters

  • T = any

Hierarchy

  • InstanceWrapper

Index

Constructors

constructor

  • Parameters

    • Default value metadata: {} = {}

    Returns InstanceWrapper

Properties

Private Readonly [INSTANCE_ID_SYMBOL]

[INSTANCE_ID_SYMBOL]: string

Private Readonly [INSTANCE_METADATA_SYMBOL]

[INSTANCE_METADATA_SYMBOL]: InstanceMetadataStore

Optional Readonly async

async: boolean

Optional forwardRef

forwardRef: boolean

Optional Readonly host

host: Module

Optional inject

inject: (string | symbol | Function | Type<any>)[]

Readonly isAlias

isAlias: boolean = false

Private isTreeStatic

isTreeStatic: boolean | undefined

metatype

metatype: Type<T> | Function

Readonly name

name: any

Optional scope

scope: Scope = Scope.DEFAULT

Private Optional transientMap

transientMap: Map<string, WeakMap<ContextId, InstancePerContext<T>>> | undefined

Private Readonly values

values: WeakMap<ContextId, InstancePerContext<T>> = new WeakMap<ContextId, InstancePerContext<T>>()

Accessors

id

  • get id(): string

instance

  • get instance(): T
  • set instance(value: T): void

isNotMetatype

  • get isNotMetatype(): boolean

isTransient

  • get isTransient(): boolean

Methods

addCtorMetadata

  • addCtorMetadata(index: any, wrapper: any): void
  • Parameters

    • index: any
    • wrapper: any

    Returns void

addEnhancerMetadata

  • addEnhancerMetadata(wrapper: any): void
  • Parameters

    • wrapper: any

    Returns void

addPropertiesMetadata

  • addPropertiesMetadata(key: any, wrapper: any): void
  • Parameters

    • key: any
    • wrapper: any

    Returns void

cloneStaticInstance

  • cloneStaticInstance(contextId: any): any
  • Parameters

    • contextId: any

    Returns any

cloneTransientInstance

  • cloneTransientInstance(contextId: any, inquirerId: any): any
  • Parameters

    • contextId: any
    • inquirerId: any

    Returns any

createPrototype

  • createPrototype(contextId: any): any
  • Parameters

    • contextId: any

    Returns any

getCtorMetadata

  • getCtorMetadata(): any
  • Returns any

getEnhancersMetadata

  • getEnhancersMetadata(): any
  • Returns any

getInstanceByContextId

  • getInstanceByContextId(contextId: any, inquirerId: any): any
  • Parameters

    • contextId: any
    • inquirerId: any

    Returns any

getInstanceByInquirerId

  • getInstanceByInquirerId(contextId: any, inquirerId: any): any
  • Parameters

    • contextId: any
    • inquirerId: any

    Returns any

getPropertiesMetadata

  • getPropertiesMetadata(): any
  • Returns any

getStaticTransientInstances

  • getStaticTransientInstances(): any[]
  • Returns any[]

initialize

  • initialize(metadata: any): void
  • Parameters

    • metadata: any

    Returns void

isDependencyTreeStatic

  • isDependencyTreeStatic(lookupRegistry?: any[]): any
  • Parameters

    • Default value lookupRegistry: any[] = []

    Returns any

isExplicitlyRequested

  • isExplicitlyRequested(contextId: any, inquirer: any): boolean
  • Parameters

    • contextId: any
    • inquirer: any

    Returns boolean

isInRequestScope

  • isInRequestScope(contextId: any, inquirer: any): boolean
  • Parameters

    • contextId: any
    • inquirer: any

    Returns boolean

isLazyTransient

  • isLazyTransient(contextId: any, inquirer: any): boolean
  • Parameters

    • contextId: any
    • inquirer: any

    Returns boolean

isNewable

  • isNewable(): any
  • Returns any

isStatic

  • isStatic(contextId: any, inquirer: any): boolean
  • Parameters

    • contextId: any
    • inquirer: any

    Returns boolean

isWrapperListStatic

  • isWrapperListStatic(tree: any, lookupRegistry: any): any
  • Parameters

    • tree: any
    • lookupRegistry: any

    Returns any

mergeWith

  • mergeWith(provider: any): void
  • Parameters

    • provider: any

    Returns void

setInstanceByContextId

  • setInstanceByContextId(contextId: any, value: any, inquirerId: any): void
  • Parameters

    • contextId: any
    • value: any
    • inquirerId: any

    Returns void

setInstanceByInquirerId

  • setInstanceByInquirerId(contextId: any, inquirerId: any, value: any): void
  • Parameters

    • contextId: any
    • inquirerId: any
    • value: any

    Returns void

Generated using TypeDoc