跳到主要内容
版本: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