面向切面编程:

  1. 横切关注点(cross-cutting consern):散布于应用中多处,影响应用多处的功能。
  2. 切面(aspect):横切关注点集中在被模块化为特殊类的切面中;使业务代码更简洁。

AOP相关术语

  1. 通知Advice
    a. 前置通知(Before)
    b. 后置通知(After)
    c. 返回通知(After-returning)
    d. 异常通知(After-throwing)
    e. 环绕通知(Around)
  2. 连接点(Join point)
  3. 切点(Pointcut)
  4. 切面(Aspect)
  5. 引入(Introduction)
  6. 织入(Weaving)
    a. 编译期
    b. 类加载期
    c. 运行期