I started to be interested in Aspects
in Java, however I am having difficulties for understanding the benefits and usage of Aspects
. I have used Macros
in C++ before. I suppose Aspects
are working in a similar way. I mean "Whenever you see X, insert the code Y". Maybe I shouldn't try to use my Macro
knowledge to learn Aspects
.
Could you give me some concrete examples that compares Aspects
and Macros
to understand this better?