Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [aspectj-users] newbie question on how to use AOP

As others have noted, your observation is good.  

AspectJ in Action, and some of the other books, are great places to 
start for learning AspectJ, and the FAQ has good tips.

But I recommend that everyone read the AspectJ Programming Guide.
It was written over a number of years of interaction with users and 
presents a number of key concepts in ways we found users understood well.  
E.g., the first chapter introduces the distinction between "development" 
and "production" aspects. The Programming Guide by no means complete; 
e.g., it does not introduce the slightly different distinction between 
"core" and "auxiliary" aspects (which, as far as I remember, was 
introduced by Adrian Colyer), or the notion of "obliviousness" (Filman).
But you should find language for thinking about most issues in AspectJ
and AOP.

The programming guide is in the AspectJ and AJDT distributions, and here
   http://dev.eclipse.org/viewcvs/indextech.cgi/%7Echeckout%7E/aspectj-home/doc/progguide/index.html

Enjoy!
Wes


------------Original Message------------
From: "Danijel Arsenovski" <darsenovski@xxxxxxxxxxxxxxxxxxx>
To: aspectj-users@xxxxxxxxxxx
Date: Tue, Feb-1-2005 10:06 AM
Subject: [aspectj-users] newbie question on how to use AOP
Hi, 
 
Just started going through AspectJ in Action..
It seems to me that right way to use aspects is to write code in that way so the main line of execution can compile and run in pure java even if no aspects are compiled/created.
In that case code will only lack these characteristics, but will still execute perfectly well.
For example, this means that if we use aspects for logging, pure java code should execute as well in both cases, with and without aspects. Of course, logging will be performed only in case where aspects are used…
 
Is this observation obvious, or am I missing something?
 
Thanks,
 
Danijel 
_______________________________________________ aspectj-users mailing list aspectj-users@xxxxxxxxxxx http://dev.eclipse.org/mailman/listinfo/aspectj-users 




Back to the top