@midwayjs/coreInterfacesIObjectDefinitionRegistry版本:Next本页总览IObjectDefinitionRegistry Object Definition Registry 对象定义存储容器Index PropertiescountidentifiersMethodsclearAllgetDefinitiongetDefinitionByNamegetIdentifierRelationgetObjectgetSingletonDefinitionIdshasDefinitionhasObjectregisterDefinitionregisterObjectremoveDefinitionsetIdentifierRelationProperties readonlycountcount: numberreadonlyidentifiersidentifiers: ObjectIdentifier[]Methods clearAllclearAll(): voidgetDefinitiongetDefinition(identifier: ObjectIdentifier): IObjectDefinitiongetDefinitionByNamegetDefinitionByName(name: string): IObjectDefinition[]getIdentifierRelationgetIdentifierRelation(): IIdentifierRelationShipgetObjectgetObject(identifier: ObjectIdentifier): anygetSingletonDefinitionIdsgetSingletonDefinitionIds(): ObjectIdentifier[]hasDefinitionhasDefinition(identifier: ObjectIdentifier): booleanhasObjecthasObject(identifier: ObjectIdentifier): booleanregisterDefinitionregisterDefinition(identifier: ObjectIdentifier, definition: IObjectDefinition): anyregisterObjectregisterObject(identifier: ObjectIdentifier, target: any): anyremoveDefinitionremoveDefinition(identifier: ObjectIdentifier): voidsetIdentifierRelationsetIdentifierRelation(identifierRelation: IIdentifierRelationShip): any
Object Definition Registry 对象定义存储容器