Cross-Cutting the MVC
Interceptors are not only confined to managing requests but also to establishing a set of behaviors of the applications, such as transaction logging, data transaction management, custom authorization and authentication, managing services, caching, and workflow simulation.
Spring 5.0 still supports AOP, which is a programming paradigm that implements a functionality or concern which may not be part of the business process but is essential to some areas of the application. These concerns or sets of behaviors are linked to some objects in order to work, like the HandlerInterceptor (which can intercept anywhere in the application).
There are two main classifications of concerns and these are the major concerns, which cater ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access