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

Moving to Spring 2.x's AOP

So far in this chapter, we have discussed only AOP implementations that were introduced in Spring 1.2.x. Spring 2.0 comes with a different AOP framework. The new AOP framework is fully integrated with AspectJ. AspectJ (http://www.eclipse.org/aspectj), an extension to the Java language, provides aspect-oriented programming features. The most valuable feature of AspectJ, in addition to its simplicity and maturity, is its pointcut expression language, which lets us express pointcuts with simple string literals.

With its AspectJ support, Spring 2.0 adds a new term to its AOP terminology: aspect. As you will see, an aspect is basically an advisor which encapsulates a pointcut and an advice.

Note

With Spring 2.0, you can still ...

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