javaspringdesign-patternsaspectjspring-aop

Spring AOP vs AspectJ


I am under the impression that Spring AOP is best used for application specific tasks such as security, logging, transactions, etc. as it uses custom Java5 annotations as a framework. However, AspectJ seems to be more friendly design-patterns wise.

Can anyone highlight the various pros and cons of using Spring AOP vs AspectJ in a Spring application?


Solution

  • Spring-AOP Pros

    Spring-AOP Cons

    AspectJ Pros

    AspectJ Cons