UNPKG

@zuiwoxing/posisi

Version:

一款基于typescript 前端控制组件,包括(IOC,AOP,Feign,Logger,Util等)

52 lines (51 loc) 1.01 kB
/** *@desc 元信息 *@author liudejian *@date 2020-03-04 22:37 **/ export declare enum Scope { SINGLE = 1, PROTOTYPE = 2 } /** * bean定义类元信息 */ export declare class BeanDefinition { name: string; type: any; scope: Scope; qualifier?: string; fields?: Set<PropertyInfo>; getPropertySet(): Set<PropertyInfo>; addProperty(propertyInfo: PropertyInfo): this; setScope(scope: Scope): this; /** * 构建 * @param name * @param classConstructor */ static build(name: string, classConstructor: any, qualifier?: string): BeanDefinition; } /** * 属性信息 */ export declare class PropertyInfo { name?: string; type?: any; value?: any; static build(name: string, type: any, value: any): PropertyInfo; } /** * 注册服务源信息 */ export interface ServiceMeta { scope?: Scope; qualifier?: string; } /** * 适配元信息 */ export interface AutowireMeta { qualifier?: string; classType?: any; }