@midwayjs/coreInterfacesIObjectDefinition版本:Next本页总览IObjectDefinition Object Definition 对象描述定义Index PropertiesallowDowngradebindHookconstructMethodconstructorArgscreateFromcreatordependsOndestroyMethodexporthandlerPropsidinitMethodnamenamespacepathpropertiesscopesrcPathMethodsgetAttrhasAttrhasConstructorArgshasDependsOnisAsyncisRequestScopeisSingletonScopesetAttrProperties allowDowngradeallowDowngrade: booleanoptionalbindHookbindHook?: (module: any, options?: IObjectDefinition) => voidconstructMethodconstructMethod: stringconstructorArgsconstructorArgs: IManagedInstance[]createFromcreateFrom: framework | file | modulecreatorcreator: IObjectCreatordependsOndependsOn: ObjectIdentifier[]destroyMethoddestroyMethod: stringexportexport: stringhandlerPropshandlerProps: { key: string; metadata: any; propertyName: string }[]idid: stringinitMethodinitMethod: stringnamename: stringoptionalnamespacenamespace?: stringpathpath: anypropertiesproperties: IPropertiesscopescope: ScopeEnumsrcPathsrcPath: stringMethods getAttrgetAttr(key: ObjectIdentifier): anyhasAttrhasAttr(key: ObjectIdentifier): booleanhasConstructorArgshasConstructorArgs(): booleanhasDependsOnhasDependsOn(): booleanisAsyncisAsync(): booleanisRequestScopeisRequestScope(): booleanisSingletonScopeisSingletonScope(): booleansetAttrsetAttr(key: ObjectIdentifier, value: any): void
Object Definition 对象描述定义