top button
Flag Notify
    Connect to us
      Site Registration

Site Registration

What is the difference between Spring AOP and AspectJ AOP?

0 votes
388 views
What is the difference between Spring AOP and AspectJ AOP?
posted Aug 22, 2017 by anonymous

Share this question
Facebook Share Button Twitter Share Button LinkedIn Share Button

1 Answer

0 votes

AspectJ is the industry-standard implementation for Aspect Oriented Programming whereas Spring implements AOP for some cases.
Main differences between Spring AOP and AspectJ are:

Spring AOP is simpler to use than AspectJ because we don’t need to worry about the weaving process.
Spring AOP supports AspectJ annotations, so if you are familiar with AspectJ then working with Spring AOP is easier.
Spring AOP supports only proxy-based AOP, so it can be applied only to method execution join points. AspectJ support all kinds of point cuts.
One of the shortcoming of Spring AOP is that it can be applied only to the beans created through Spring Context.

answer Aug 23, 2017 by Sourav Kumar
...