跳到主要内容
版本:Next

IObjectDefinition

Object Definition 对象描述定义

Index

Properties

allowDowngrade

allowDowngrade: boolean

optionalbindHook

bindHook?: (module: any, options?: IObjectDefinition) => void

constructMethod

constructMethod: string

constructorArgs

constructorArgs: IManagedInstance[]

createFrom

createFrom: framework | file | module

creator

dependsOn

dependsOn: ObjectIdentifier[]

destroyMethod

destroyMethod: string

export

export: string

handlerProps

handlerProps: { key: string; metadata: any; propertyName: string }[]

id

id: string

initMethod

initMethod: string

name

name: string

optionalnamespace

namespace?: string

path

path: any

properties

properties: IProperties

scope

scope: ScopeEnum

srcPath

srcPath: string

Methods

getAttr

hasAttr

hasConstructorArgs

  • hasConstructorArgs(): boolean

hasDependsOn

  • hasDependsOn(): boolean

isAsync

  • isAsync(): boolean

isRequestScope

  • isRequestScope(): boolean

isSingletonScope

  • isSingletonScope(): boolean

setAttr