Advice type - Before

Let's see the following figure for before advice. This advice executes the before the target method:

As you can see in figure, before advice is executed first and then it calls the Target method. As we know that Spring AOP is proxy-based. So a Proxy object is created of target class. It is based on Proxy design pattern and Decorator Design Pattern.

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset