跳到主要内容
版本:Next

IMidwayContainer

Abstract Object Factory 对象容器抽象

Hierarchy

Implemented by

Index

Properties

identifierMapping

identifierMapping: IIdentifierRelationShip

objectCreateEventTarget

objectCreateEventTarget: EventEmitter<DefaultEventMap>

parent

registry

Methods

bind

  • Type parameters

    • T

bindClass

createChild

get

  • Type parameters

    • T

getAsync

  • Type parameters

    • T

getAttr

  • getAttr<T>(key: string): T
  • Get value from app attribute map


    Type parameters

    • T

getInstanceScope

  • Get instance IoC container scope

getNamespaceList

  • getNamespaceList(): string[]

hasDefinition

hasNamespace

  • hasNamespace(namespace: string): boolean

hasObject

load

  • load(module: any): any

onBeforeBind

onBeforeObjectCreated

onBeforeObjectDestroy

onObjectCreated

  • onObjectCreated(fn: (...args: [ins: unknown, options: ObjectCreatedOptions<unknown>]) => void): void

onObjectInit

  • onObjectInit(fn: (...args: [ins: unknown, options: ObjectInitOptions]) => void): void

ready

  • ready(): void | Promise<void>

registerObject

setAttr

  • setAttr(key: string, value: any): any
  • Set value to app attribute map

setFileDetector

stop

  • stop(): Promise<void>