Spring Aop 术语
2022-07-13 本文已影响0人
小P_500d
advice: advice is a job. there are five kinds of advices used by Spring aspect:Before,After,After-returning,After-throwing,Around.
join point: multiple number of places in the application to apply advice.such as method call or exception throw
pointcut: advice is not necessary to apply to all join points in an application, pointcuts can select one or more join points,pointcut is an expression
aspect: Aspect is a module that encapsulate pointcuts and advice. Aspects know what it dose, where and when it dose in the application
weaving: a process of applying aspects to a target object by creating new proxy object