Building Microservices with Spring
上QQ阅读APP看书,第一时间看更新

Weaving

Weaving is a technique by which aspects are combined with the business code. This is a process of applying aspects to a target object by creating a new proxy object. Weaving can be done at the compile time or at class load time, or at runtime. Spring AOP uses the runtime weaving by using proxy pattern.

You have seen lot of terms used in the AOP. You must know about this terminology whenever your learn about any AOP Framework either AspectJ or Spring AOP. Spring has used AspectJ Framework to implement Spring AOP Framework. Spring AOP supports limited features of AspectJ. Spring AOP provides proxy-based AOP solution. Spring only supports the method joint points. Now you have some basic idea about Spring AOP and how it works, let's move on the next topics how to define pointcuts in the Spring's declarative AOP model.