Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
RE: [aspectj-users] If and loop pointcuts

At the AOSD conference, Kevin Sullivan was demoing some work by a
student from University of Virginia, showing a good use of if and
loop join points. Was that the paper you were reading?

At the time we finalized the join points for AspectJ 1.0, we had
never seen reasonable uses of such join points. But the application
shown at AOSD shows that there is at least one such use.

As usual, the key issue is to have pointcuts that pick them out in
reasonable ways, rather than by fragile properties such as "1st if
in the method named foo". The examples I saw at AOSD picked in
terms of which direction the branch takes (true/false). They used
this to do code coverage.

I bet that if more reasonable uses show up, these join points and
pointcuts could make it into a future version of AspectJ. But, as
nice as the Virginia examples are, it would be good to seem some
more before doing this.

But since AspectJ is open source, its an easy thing for someone
to try.

> -----Original Message-----
> From: aspectj-users-admin@xxxxxxxxxxx 
> [mailto:aspectj-users-admin@xxxxxxxxxxx] On Behalf Of Johanne Leduc
> Sent: Friday, April 16, 2004 12:34 PM
> To: aspectj-users@xxxxxxxxxxx
> Subject: [aspectj-users] If and loop pointcuts
> 
> 
> Hello,
> 
> I read an article on AOP and AspectJ that mentioned, when 
> explaining AOP 
> principles, that the beginning of a loop is a possible 
> joinpoint. I know 
> it's not presently an AspectJ feature, but I was wondering if 
> there are 
> plans to one day have "if" statements and loops as pointcuts. 
> I'd really 
> appreciate any thoughts on this.
> 
> Thank you,
> Johanne
> 
> _________________________________________________________________
> MSN Premium: Up to 11 personalized e-mail addresses and 2 
> months FREE*   
> http://join.msn.com/?pgmarket=en-ca&page=byoa/prem&xAPID=1994&;
> DI=1034&SU=http://hotmail.com/enca&HL=Market_MSNIS_Taglines
> 
> _______________________________________________
> aspectj-users mailing list
> aspectj-users@xxxxxxxxxxx
> http://dev.eclipse.org/mailman/listinfo/aspectj-users
> 




Back to the top