What is the basic AOP design model?

Had this interesting question been asked today, and the arguments ranged from Proxy to Wrapper to Decorator.

Thoughts?

+3
source share
2 answers

Short description

  • Proxy: "Provide a surrogate or placeholder for another object to control access to it."
  • Decorator: "Assign additional responsibilities to an object dynamically." *
  • Adapter (Wrapper): "Convert the class interface to another client interface."

Based on this, the AOP looks to me (a solution to the problem solved) by Decorator, not Proxy - and definitely not Adapter.

* From the book GoF.

+6
source

"the arguments ranged from Proxy to Wrapper to Decorator."

. - - - .

, .

, .

+7

Source: https://habr.com/ru/post/1792016/


All Articles