Help and Information about Aspect Oriented Programming

前端 未结 5 848
挽巷
挽巷 2020-12-23 12:40

I\'m a newcomer to the idea of aspect-oriented programming but I would like to explore the idea of using it on my project for handling logging, reporting, etc. To this end

5条回答
  •  隐瞒了意图╮
    2020-12-23 13:15

    Do not think its something totally different. AOP improves (IMO) your design by reducing coupling, increasing cohesion, separate concerns by giving an object of a certain type 1 single responsibility. If your are from .net world PostSharp makes use of custom attributes to weave advices. If you are from the Java world you can use the Java extension called AspectJ. AOP has more applications than what you see generally.

提交回复
热议问题