BT
x Your opinion matters! Please fill in the InfoQ Survey about your reading habits!

InfoQ Article: Making AspectJ development easier with AJDT

by Floyd Marinescu on Nov 23, 2006 |
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 Eclipse.org tools project and is released under the terms of the EPL.  See also InfoQ.com/aop

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

Joost,

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.

cheers,
Alef

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

Educational Content

General Feedback
Bugs
Advertising
Editorial
InfoQ.com and all content copyright © 2006-2014 C4Media Inc. InfoQ.com hosted at Contegix, the best ISP we've ever worked with.
Privacy policy
BT