Difference between Spring AOP and AspectJ AOP
https://www.tutorialspoint.com/difference-between-spring-aop-and-aspectj-aop
-
10-09-2020 - |
Pergunta
Difference between Spring AOP and AspectJ AOP
Sr. No. | Key | Spring AOP | AspectJ 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 |
Advertisements
Não afiliado a Tutorialspoint