AOP Introductions

Let’s learn about AOP Introductions (inter-type declarations) to modify existing classes and their behaviors.

What is an AOP introduction?

An AOP introduction, also known as an inter-type declaration, allows us to declare additional methods and fields for a type. Spring AOP lets us introduce new interfaces with their implementation and adds them to any class using the AspectJ advice. For instance, we’ll add the audit logging feature to our TodoService and TodoTypeService services by using the AOP ...