Summary
In this chapter, we have seen the Spring AOP Framework and used design patterns behind this module. AOP is a very powerful paradigm and it complements the Object oriented programming. Aspect-Oriented Programming (AOP) modularizes cross-cutting concerns such as Logging, Security and Transaction. An aspect is a Java class annotated with @Aspect
annotation. It defines a module containing the crosscutting behavior. This module separates from the application's business logic. We can reuse it in our application with other business modules without making any changes.
In Spring AOP, behavior is implemented as an advice method. You have learned in Spring, there are five types as Before, AfterThrowing, AfterReturning, After and Around. Around advice is a very powerful advice, there are interesting features implemented by using Around advice. You've learned how to weave these advices using load time weaving.
You have seen how to declare Pointcuts in the Spring application and pointcuts select...