InterviewSolution
Saved Bookmarks
| 1. |
When To Use Spring Aop And When To Use Full Aspectj? |
|
Answer» If we only need to ADVICE the execution of operations on Spring BEANS then we should use Spring AOP. Spring AOP is simpler than AspectJ. Full AspectJ requires the AspectJ complier in the build process. In case if we advice OBJECTS not to be managed by Spring CONTAINER, use AspectJ. If we only need to advice the execution of operations on Spring beans then we should use Spring AOP. Spring AOP is simpler than AspectJ. Full AspectJ requires the AspectJ complier in the build process. In case if we advice objects not to be managed by Spring Container, use AspectJ. |
|