InfoQ Article: Making AspectJ development easier with AJDT

| by Floyd Marinescu Follow 35 Followers on Nov 23, 2006. Estimated reading time: 1 minute |
Aspect Oriented Programming (AOP) can be used to solve a number of today's application requirements but can also be intimidating for developers when getting started. A new article by Matt Chapman, AJDT Project Lead, shows how AOP development with the popular AspectJ library can be made easier using the Eclipse AspectJ Development Tools (AJDT) plugin.

Read  Making AspectJ development easier with AJDT

The article shows how the AspectJ editor provides sophisticated functionality to aid the development of aspects, and how the markers and Cross References view show detailed information and support navigation of the crosscutting structure of your application. Incremental compilation improves the efficiency of the development process and the Eclipse Java debugger can still be used as the AspectJ compiler produces regular bytecodes (to set breakpoints in around advice you need to turn off inlining in the AspectJ compiler settings).

AJDT also offers more advanced capabilities beyond the scope of this article including a launch configuration for load-time weaving, an aspect visualization perspective, a crosscutting comparison tool, support for developing and using aspect libraries, and functionality relating to the development of AspectJ-enabled Eclipse plug-ins.

Please visit the AJDT site to find out more,including demos, new features, downloads, and details about the AJDT newsgroup if you have any questions. AJDT is an open source tools project and is released under the terms of the EPL.  See also

Rate this Article

Adoption Stage

Hello stranger!

You need to Register an InfoQ account or or login to post comments. But there's so much more behind being registered.

Get the most out of the InfoQ experience.

Tell us what you think

Allowed html: a,b,br,blockquote,i,li,pre,u,ul,p

Email me replies to any of my messages in this thread

aspect eclipse by Joost de Vries

My pet peeve about ajdt is that it doesn't work well (last time I looked) with multi-project software. You have to mount the sourcetree of all your other eclipse projects in your aspect project; thus essentially having to duplicate your build process.
I'd like to define a separate aspect eclipse project that enhances other eclipse projects in situ. Imo that would be aspect-oriented support in Eclipse.

Re: aspect eclipse by Alef Arendsen


you can also link in your AspectJ project in the other projects you want to apply your aspects to. Use the linked source folder approach to link in the aspect project into the normal project.


Re: aspect eclipse by Joost de Vries

Ok, that would be great. Thanks.

Debugging advices by yash aaloda

Can anybody elaborate on debugging advices? I was able to debug before & after advices but not around. As indicated by many of sites, by switching inlining to off you should be able to do so. But it didn't happen for me.

Allowed html: a,b,br,blockquote,i,li,pre,u,ul,p

Email me replies to any of my messages in this thread

Allowed html: a,b,br,blockquote,i,li,pre,u,ul,p

Email me replies to any of my messages in this thread

4 Discuss

Login to InfoQ to interact with what matters most to you.

Recover your password...


Follow your favorite topics and editors

Quick overview of most important highlights in the industry and on the site.


More signal, less noise

Build your own feed by choosing topics you want to read about and editors you want to hear from.


Stay up-to-date

Set up your notifications and don't miss out on content that matters to you