Mar 13 2008
Spring AOP with aspectJ and JDK5 annotations
The figure below shows the introduction of the aspect paradigm in a application. The first part shows 3 classes with a cross-cutting function (logging, for example). The second part shows the same application after theintroduction of the aop paradigm. The functionality is now isolated in only one class.
Spring and AOP
Since version 2.0, Spring provides two ways of creating aspects with AspectJ: trough XML configuration with the spring AOP schema or with Java 5 annotations. The first form has the benefit to be backward compatible with older versions of java. The second one has a shorter syntax and is compatible with AspectJ. We will investigate this one in details.



