Safari Books Online is a digital library providing on-demand subscription access to thousands of learning resources.
AOP is a powerful complement to object-oriented programming. With aspects, you can now group application behavior that was once spread throughout your applications into reusable modules. You can then declare exactly where and how this behavior is applied. This reduces code duplication and lets your classes focus on their main functionality.
Spring provides an AOP framework that lets you insert aspects around method executions. You’ve learned how you can weave advice before, after, and around a method invocation, as well as add custom behavior for handling exceptions.