Aller au contenu principal
Version: Next

MidwayAspectService

Index

Constructors

constructor

Properties

readonlyapplicationContext

applicationContext: IMidwayContainer

Methods

publicaddAspect

publicinterceptPrototypeMethod

  • interceptPrototypeMethod(Clz: new (...args: any[]) => any, methodName: string, aspectObject: IMethodAspect | () => IMethodAspect): void
  • intercept class method in prototype

publicloadAspect

  • loadAspect(): Promise<void>
  • load aspect method for container