Summary

In this chapter, we discussed Aspect-Oriented Programming (AOP) technology as a complementary approach to Object-Oriented Programming (OOP). AOP technology defines the aspect, a new concept in system development.

AOP development involves five components: advice, pointcut, advisor, target object, and proxy. Advice specifies the logic that is performed. A pointcut determines the target methods that are advised. An advisor, or aspect, pulls an advice and a pointcut together, and is responsible for applying the advice to the pointcut. The target object is the object that includes the advice methods. A proxy, the object delegated by the method invocation, calls advisors behind the scenes.

Spring provides three types of advice in addition to the ...

Get Spring Persistence with Hibernate now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.