AOP Concepts and Terminology

An important term in AOP is advice. It is the action taken by an aspect at a particular join-point. (Code which need to be executed before / after / around i.e. Entry point code).


Joint point is a point of execution of the program, such as the execution of a method or the handling of an exception. In Spring AOP, a joint point always represents a method execution.

(Method for which we are doing this in our case it is returnCash () and receivePayment () method)


Pointcut is a predicate or expression that matches join points.

(In our case it is a condition when to call like before or after)


Aspect is associated with a pointcut expression and runs at any join point matched by the pointcut. Spring uses the AspectJ pointcut expression language by default.

spring aop terminology

Ready for structured training?

Learn Java Full Stack with real projects

Live classes, practical projects, interview preparation and placement support in one guided programme.

View Java Full Stack Course Book Free Demo