Difference between Spring AOP and AspectJ AOP


Sr. No.KeySpring AOPAspectJ AOP
1
Basic
It is a simple implementation of AOP technology. It can be applied only the beans.
It is a complete implementation of the AOP technology in Java. It can be applied in any java class.
2
Design Pattern  
It uses the proxy pattern so aspects are applied on proxies object
It doesn't use proxy pattern aspects are directly applied on the code.
3
PontCuts
It supports only method level points cuts
No Restriction
4
Weaving of Aspects
The weaving of Aspects will be performed by the container at container start-up 
Weaving of aspect can perform with a post compilation of your code through bytecode modification
5
Nested Method
Aspects can’t be applied when calling another method within the same class
Aspects can be applied when calling another method within the same class


Updated on: 09-Sep-2020

388 Views

Kickstart Your Career

Get certified by completing the course

Get Started
Advertisements