What are the possible AOP use cases?

前端 未结 11 2077
孤街浪徒
孤街浪徒 2020-12-23 16:27

I\'d like to make a picture of what are the possible cases for effective involvement of AOP in application design. All I have met so far is:

  • logging-related
11条回答
  •  北荒
    北荒 (楼主)
    2020-12-23 16:51

    One effective use of AOP, besides all those you listed, can be validation. Validation of user input, or business objects.

    Related articles you must look at.

    • AOP@Work: Design with pointcuts to avoid pattern density
    • AOP@Work: Enhance design patterns with AspectJ, Part 2

提交回复
热议问题