BT

Facilitating the Spread of Knowledge and Innovation in Professional Software Development

Write for InfoQ

Topics

Choose your language

InfoQ Homepage News InfoQ Article: Making AspectJ development easier with AJDT

InfoQ Article: Making AspectJ development easier with AJDT

Bookmarks
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

Rate this Article

Adoption
Style

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.

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

Community comments

  • aspect eclipse

    by Joost de Vries,

    Your message is awaiting moderation. Thank you for participating in the discussion.

    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,

    Your message is awaiting moderation. Thank you for participating in the discussion.

    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,

    Your message is awaiting moderation. Thank you for participating in the discussion.

    Ok, that would be great. Thanks.

  • Debugging advices

    by yash aaloda,

    Your message is awaiting moderation. Thank you for participating in the discussion.

    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

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

BT