InterviewSolution
| 1. |
How do you implement cross-cutting concerns in a web application? |
|
Answer» When you are working for a new application, it becomes important to work on standard best practices which are going to be REUSABLE by all developers. Some of the aspects which can be CONSIDERED as cross-cutting concerns are auditing, LOGGING, security, transactions, versioning, etc. AOP is a programming paradigm that aims to increase modularity by ALLOWING the separation of cross-cutting concerns. It does so by adding additional behaviour to existing code without modification of the code itself. Instead, we can declare this new code and these new behaviours separately. Spring’s AOP FRAMEWORK helps us implement these cross-cutting concerns. |
|