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 ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access