JAVA framework Spring AOP

One: AOP related terms:

1) Joinpoint (join point): The so-called join point refers to those points that can be intercepted, and these points refer to methods in spring. Because method type join points are supported in spring.

2) Pointcut (pointcut): The so-called pointcut is to define (enhance) those connection points. That is to say, the interception point contains the pointcut.

3) Advice (notification/enhancement): The so-called notification is what to do after intercepting the joinpoint, that is, notification. The types of notifications are divided into: pre-notification, post-notification, exception notification, final notification, surround notification (the function to be completed by the aspect).

4) introduction (introduction): introduction is a special kind of notification. Under the premise of not modifying the code of the class, introduction can dynamically add some methods or fields at runtime.

5) Target (target object): The target object of the agent.

6) Weaving: refers to the process of applying enhancements to target objects to create new proxy objects.

7) proxy (proxy): After a class is woven and enhanced by AOP, the resulting proxy class is generated.

8) Aspect (aspect): It is a combination of pointcut and advice, which needs to be written and configured by ourselves.

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=324577297&siteId=291194637