O'Reilly logo

Spring Persistence with Hibernate by Ahmad Seddighi

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Spring's AOP framework

Spring provides a rich and powerful AOP framework. In this section, we will discuss the different kinds of advice Spring provides, how advice can join with a target object through joinpoints, and how the joinpoints can be accumulated as pointcuts. Finally, we will look at the different proxy generator classes Spring provides.

Advice

The most important part of AOP is advice. An advice defines the custom behavior or reaction that is accomplished at joinpoints. Spring wraps a method invocation in a chain of interceptors behind the proxy object. Each interceptor is responsible for applying an advice.

Spring allows us to use different kinds of advice, and each is useful for a particular case. The following table lists these advice ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required