跳到主要内容
版本:Next

IMidwayContainer

Abstract Object Factory 对象容器抽象

Hierarchy

Index

Properties

registry

Methods

get

  • get<T>(identifier: string | ClassType<T>, args?: any[]): T
  • Type parameters

    • T

getAsync

  • getAsync<T>(identifier: string | ClassType<T>, args?: any[]): Promise<T>
  • Type parameters

    • T

getAttr

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


    Type parameters

    • T

getDefinition

getIdentifier

  • getIdentifier(identifier: string | ClassType<any>): string
  • Get IoC identifier

getInstanceScope

  • Get instance IoC container scope

getObject

  • Type parameters

    • T

hasDefinition

hasNamespace

  • hasNamespace(namespace: string): boolean

hasObject

registerObject

removeObject

setAttr

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