Can't know the AOP concept

xiaoxiao2021-03-06  76

Concern: a specific problem, concerned. This is not the concept in the AOP, and there is Concern in OO, but it is only used to use OO method.

Crosscutting Concern: It has been cut through multiple classes, such as security checks, transaction processing, and more.

Aspect: Modular Crosscutting Concern. That is, the general feature of the safety check is used in many classes, and the unified modular code is extracted with unified modular code. This is the so-called aspect. This can actually be implemented in an object-oriented manner, but it is not necessary to display calls in the AOP. For business programmers, aspect modules are transparent.

Join Point: The connection point during the program execution, switching points. AOP is to enter the scorpion in these points, cut aspect (aspect) into the connection point, including three:

l method call point

l Field access point

l abnormal throws

Advice: The specific implementation of Aspect, inserted something in Join Point, will execute Advice when the program executes to join Point. Many AOP frameworks are implemented using the Interceptor (interpreter). Three types:

l before (pre): call before Join Point

l at (post): Call after Join Point

l Around: Advice Control to Join Point Call

PointCut: a set of join points.

Introduction: Give or interface increase method or member

Mixed Inheritance: Use the Introduction mode to achieve a function similar to multiple inheritance

Weaving: Will weaving aspects into the program execution process.

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

New Post(0)