| 1. |
Compare Spring AOP vs AspectJ? |
|
Answer» Think about Spring AOP and AspectJ over various pivot – for example, capabilities, goals, weaving, INTERNAL structure, joinpoints, and simplicity.
Spring AOP means to give a basic AOP execution crosswise over Spring IoC to take care of the most widely recognized issues that software engineers face. It isn't proposed as a total AOP arrangement – it can only be applied to beans that are managed by a Spring container. Then again, AspectJ is the original AOP technology which means to give complete AOP SOLUTION. It is more robust yet in addition altogether more COMPLICATED than Spring AOP. It's additionally important that AspectJ can be connected over all the domain objects
Both AspectJ and Spring AOP utilizes the diverse kinds of weaving which influence their behaviour in regards to execution and convenience. AspectJ makes use of three different types of weaving:
With runtime weaving, the aspects are woven amid the execution of the application utilizing proxies of the targeted object – utilizing either JDK dynamic proxy or a CGLIB proxy |
|