Safari Books Online is a digital library providing on-demand subscription access to thousands of learning resources.
So far, you have seen lots of small examples of how to use the Spring AOP features, but as of yet, we have not looked at some practical uses of AOP in an application. Typical examples in this field are logging and security, and we have looked at these, albeit briefly, over the course of this chapter and the last. However, AOP is not just limited to use in logging and security, and it can be put to great use when you are implementing any application-specific logic that is crosscutting—that is, any logic in your application that needs to be called from a large number of separate components. In this section, we will give you an overview about how we use Spring AOP in the sample SpringBlog application to solve a problem involving crosscutting ....