Spring 5 Design Patterns: Master efficient application development with patterns such as proxy, singleton, the template method, and more by Dinesh Rajput

Spring 5 Design Patterns: Master efficient application development with patterns such as proxy, singleton, the template method, and more by Dinesh Rajput

Author:Dinesh Rajput [Rajput, Dinesh]
Language: eng
Format: azw3
Tags: COM051240 - COMPUTERS / Software Development and Engineering / Systems Analysis and Design, COM051440 - COMPUTERS / Software Development and Engineering / Tools, COM051280 - COMPUTERS / Programming Languages / Java
Publisher: Packt Publishing
Published: 2017-10-06T04:00:00+00:00


Let's see how we will implement these cross-cutting concerns in our application by using aspects of Spring AOP.

What is Aspect-Oriented Programming?

As mentioned earlier, Aspect-Oriented Programming (AOP) enables modularization of cross-cutting concerns. It complements Object-oriented programming (OOP) which is another programing paradigm. OOP has class and object as key elements but AOP has aspect as key element. Aspects allow you to modularize some functionality across the application at multiple points. This type of functionality is known as cross-cutting concerns. For example, security is one of the cross-cutting concerns in the application, because we have to apply it at multiple methods where we want security. Similarly, transaction and logging are also cross-cutting concerns for the application and many more. Let's see in the following figure how these concerns are applied to the business modules:



Download



Copyright Disclaimer:
This site does not store any files on its server. We only index and link to content provided by other sites. Please contact the content providers to delete copyright contents if any and email us, we'll remove relevant links or contents immediately.