Advice JoinPoint Pointcuts Aspect



Advice
The Actual job or purpose of the Aspect is called Advice.
Advice know what to do and when to do.
There are five kind of Advice spring Aspect work with:
Before: The advice functionality executes  before the method called
After: The advice functionality executes after the method called
After-returning: The advice functionality executes after the method execute successfully.
After-throwing: The advice functionality executes if the method throws the Exception
Around: The advice functionality executes before and after the execution of method.

Joinpoint
In any Application a join point is the location in the execution flow where an aspect can be applied. That point can be a called method, an exception thrown, or it can be a field to be modified.
At all the mentioned points your aspect’s code can be applied to the flow of  your application to have new behavior.


Pointcuts
The advice is for what and when of aspects while pointcuts define the where.
A Pointcuts can match with the one or more Joinpoint where the advice should be applied.
We can specify the Pointcuts using the class name, method name or using the regular expression.

Aspect
Combination or merging of Advice and pointcuts is called Aspect