Preliminary study of AOP

xiaoxiao2021-03-06  110

I have recently seen something about AOP (Aspect Oriented Programming), I feel good, I have to give it.

AOP is actually defining a self-syntax specification, then uses a source processor, re-unfolding the code according to this syntax, feeling like a macro of C, C statements, but more advanced, can be appropriate at the code Location (for example, before or after the code snippet, or then), add your own code.

The advantage of this approach is to split the originally coupled code into a separate module, the most typical example is the log.

This technique will be very good for programming and system design, making the module more flexible.

This technology is starting, there will be a large development space, I suggest you learn together and study together.

转载请注明原文地址:https://www.9cbs.com/read-126485.html

New Post(0)