Several ways of AOP terminology and notification (the Spring)

Creative Commons License Copyright: Attribution, allow others to create paper-based, and must distribute paper (based on the original license agreement with the same license Creative Commons )

AOP terminology:

Without further ado, direct dry goods:

AOP terminology
        Terminology            Introduction
target Target class The need to enhance the class
proxy Acting Class Since proxy object definition
joinPoint Junction A specific location of program execution, Spring supports only method of connection points
pointCut Entry point Target class (target) actually enhanced method
weave Weaving Acting classes need to enhance the way into the target class to execute the process
advice Notice The method is applied to a proxy object class of the target process result generated
aspect section All the connection points and the method of composition of the object with the agent

Notified:

Notification mode, a total of five kinds were divided (front, rear, abnormal, surround, final) notification. Or display it in tabular form, compare and slogans memory.

Notify the
method to informe Detailed
Front  Enhanced logic execution before the target method
Postposition Enhanced logic executed after the target method
abnormal Target method abnormal, term logic is run by
surround Before and after the target method executes, enhanced logic is run
finally Enhanced logic after the target method executes, whether or not an exception will be executed.

 

 

 

Guess you like

Origin blog.csdn.net/longyanchen/article/details/94487853