Spring AOP (Aspect Oriented Programming).
Please refer below link for details:-
Aspect Oriented Programming break the program logic
into distinct part called concern.
The function that span multiple points are called
cross-cutting concern and these concern are conceptually separated.
Cross-cutting concerns are separated from functional
logic and weaving is done to apply those functionality.
Example of aspects are logging, auditing, declarative
transaction and caching etc.