Summary

We have explored how to solve cross cutting problems using aspect oriented programming. These problems include things like caching, security, and performance measuring; problems that all require ugly copy-paste solutions, if we resort to standard OOP practices.

Spring Python's AOP module helps us to uphold the DRY and SRP principles. This reduces maintenance costs and helps us to handle future changes that are always coming.

In this chapter, we learned:

  • How to add caching to Spring Python objects
  • How to extend the example by adding performance and security advisors
  • AOP is a paradigm, and not just a library
  • The distinct features of Spring Python's AOP, compared to other libraries as well as Python language features
  • The risks of AOP and how to mitigate them by automated testing
  • Some tips about applying Advice

In the next chapter, we will look at easily writing SQL queries using Spring Python's DatabaseTemplate.

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
18.119.158.134