AspectJ

AspectJ is an aspect- oriented extension of Java, which was developed at Xerox PARC and now an open- source project of the Eclipse Foundation is. It is available as a stand-alone program and as an Eclipse plug-in.

An AspectJ compiler binds aspects in a normal Java bytecode to implement the event -based system. Aspects are written in a combination of Java and AspectJ and integrated by an additional pre- class in Java to generate standard Java bytecode can and so to make AspectJ compatible with Java.

At the moment there are two AspectJ compiler: ajc, which is a part of the Eclipse AspectJ project and abc, an extensible optimizing compiler, which was created by aspectbench.org. AspectJ has also been ported to other programming languages ​​, such as in Common Lisp ( AspectL ) and Ruby ( AspectR ). In these two ports, no special compiler is needed; The aspects may be programmed into the existing object -based system.

The programming framework Spring provides good support for AspectJ.

4239
de