import Scoper from "../type/impl/component/Scoper" import {IAdvice, IAspect, IComponent, IControllerParam, IHttpSend, IPointcut, IResource, IStream, ITransaction, IUpload} from "../type/interface" import {PojoType} from "../type/type" export default class DecorateRegistCenter{ public static components: Array = [] public static resourceMappings: Array = [] public static aspects: Array = [] public static pointcuts: Array = [] public static advices: Array = [] public static httpSends: Array = [] public static transactions: Array = [] public static params: Array = [] public static scopes: Array = [] public static streams: Array = [] public static uploads: Array = [] public static registComponents(option: IComponent): void{ DecorateRegistCenter.components.push(option) } public static registResourceMappings(option: IResource): void{ DecorateRegistCenter.resourceMappings.push(option) } public static registAspects(option: IAspect): void{ DecorateRegistCenter.aspects.push(option) } public static registPointcuts(option: IPointcut): void{ DecorateRegistCenter.pointcuts.push(option) } public static registAdvices(option: IAdvice): void{ DecorateRegistCenter.advices.push(option) } public static registHttpSends(option: IHttpSend): void{ DecorateRegistCenter.httpSends.push(option) } public static registTransactions(option: ITransaction): void{ DecorateRegistCenter.transactions.push(option) } public static registScopes(scope: Scoper): void{ DecorateRegistCenter.scopes.push(scope) } public static registParams(option: IControllerParam): void{ DecorateRegistCenter.params.push(option) } public static registStreams(option: IStream): void{ DecorateRegistCenter.streams.push(option) } public static registUploads(option: IUpload): void{ DecorateRegistCenter.uploads.push(option) } }