Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface AopAdvisor<T>

Advisor interface for AOP. AOP切入通知接口

Type parameters

  • T

Hierarchy

  • AopAdvisor

Index

Properties

Properties

Optional after

after: (this: T, returns: any) => void

Type declaration

    • (this: T, returns: any): void
    • Parameters

      • this: T
      • returns: any

      Returns void

Optional around

around: (this: T, fn: Function, ...args: any[]) => any

Type declaration

    • (this: T, fn: Function, ...args: any[]): any
    • Parameters

      • this: T
      • fn: Function
      • Rest ...args: any[]

      Returns any

Optional before

before: (this: T, ...args: any[]) => void

Type declaration

    • (this: T, ...args: any[]): void
    • Parameters

      • this: T
      • Rest ...args: any[]

      Returns void

Optional throws

throws: (this: T, e: Error) => void

Type declaration

    • (this: T, e: Error): void
    • Parameters

      Returns void