Options
All
  • Public
  • Public/Protected
  • All
Menu

Class InstanceWrapper<T>

Type parameters

  • T = any

Hierarchy

  • InstanceWrapper

Index

Constructors

constructor

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

addEnhancerMetadata

addPropertiesMetadata

cloneStaticInstance

cloneTransientInstance

createPrototype

getCtorMetadata

getEnhancersMetadata

getInstanceByContextId

getInstanceByInquirerId

getPropertiesMetadata

getStaticTransientInstances

Private initialize

isDependencyTreeStatic

  • isDependencyTreeStatic(lookupRegistry?: string[]): boolean

isExplicitlyRequested

isInRequestScope

isLazyTransient

Private isNewable

  • isNewable(): boolean

isStatic

Private isWrapperListStatic

  • isWrapperListStatic(tree: InstanceWrapper[], lookupRegistry: string[]): boolean

mergeWith

setInstanceByContextId

setInstanceByInquirerId

Generated using TypeDoc