Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
RE: [aspectj-users] AOP tools

I agree that this kind of prototyping support should be the job of a tool, and not of special language support.  We had a prototype “join point probe” tool in pre-AJDT IDE support.  It would let you put in a pointcut, then show you the matches in a tree.  But we never quite worked out the UI (e.g. matches showed in new view, you had to fully qualify type names).  Julie Waterhouse and I spent a bit more time discussing how this could work for AJDT, and thought a good way of doing it would be to allow you to create a .ajpage (similar to a .jpage file), then select any pointcut, right-click, and hit “show matches” to temporarily show everything the probe matched in the Cross References view (the content would stick if the view were not in “link with editor mode”).

 

Since for the first time three is user demand for such a tool I have created a report for it.  If you have suggestions for how you would like it to work please post them here: https://bugs.eclipse.org/bugs/show_bug.cgi?id=109759

 

Cheers,

 

Mik

 


From: aspectj-users-bounces@xxxxxxxxxxx [mailto:aspectj-users-bounces@xxxxxxxxxxx] On Behalf Of Bo Yi
Sent: September 16, 2005 7:49 AM
To: aspectj-users@xxxxxxxxxxx
Cc: aspectj-users@xxxxxxxxxxx; aspectj-users-bounces@xxxxxxxxxxx
Subject: RE: [aspectj-users] AOP tools

 

Yes, I can get join points in AJDT visually.
But it is very handy to print a list of join points in console or a text
file when one have to find problems with aspects.

Regards,

Bo
----------------------------------------------------------
Dr. Bo Yi
WebSphere Development & Testing
IBM Toronto Lab
A2-713/Q2Z/8200/MKM
8200 Warden Ave. Markham ONT. L6G 1C7
Phone: 905-413-4819
Tie Line: 969-4819
E-Mail: boyi@xxxxxxxxxx




"Ron DiFrango"
Sent by: aspectj-users-bounces@xxxxxxxxxxx
09/16/2005 10:11 AM
Please respond to
aspectj-users


To

cc

Subject
RE: [aspectj-users] AOP tools

All,

 

Don't you in effect get this from AJDT?  Unless your project weaves into external JAR's, you get immediate feedback from AJDT of what Join points are affecting which classes.

 

Ron

-----Original Message-----
From: Bo Yi [mailto:boyi@xxxxxxxxxx]
Sent: Fri 9/16/2005 9:57 AM
To: aspectj-users@xxxxxxxxxxx
Cc: aspectj-users@xxxxxxxxxxx; aspectj-users-bounces@xxxxxxxxxxx
Subject: RE: [aspectj-users] AOP tools


Hi All,

I like the idea to have a tool probe join points take place in java packages.  It can be a new tool or an option in ajc -- aspectj compiler. Does the compiler has such option already, I did not pay attention on its new move recently.

Thanks All,

Bo
----------------------------------------------------------
 Dr. Bo Yi
 WebSphere Development & Testing
 IBM Toronto Lab
 A2-713/Q2Z/8200/MKM
 8200 Warden Ave. Markham ONT. L6G 1C7
 Phone: 905-413-4819
 Tie Line: 969-4819
 E-Mail: boyi@xxxxxxxxxx


"Antti Karanta" <antti.karanta@xxxxxxx>
Sent by: aspectj-users-bounces@xxxxxxxxxxx

09/16/2005 01:23 AM

Please respond to
aspectj-users

To

<aspectj-users@xxxxxxxxxxx>

cc

 

Subject

RE: [aspectj-users] AOP tools

 

 

 





> #: mohan.radhakrishnan@xxxxxxxxxxxxx changed the world a bit
> at a time by saying on  9/15/2005 3:37
> PM :#
> > Hi,
> >      Actually I was trying to see if we could prototype
> AspectJ using a
> > tool like the one Groovy is using.
> >
> > 1. Write some pointcuts in a console. The full code for an
> aspect and
> > other confugurations are not needed.
> > 2. Apply them and see the result.
>
> I am worried about this step, as for applying them you
> already should have written your classes.
> Probably the mechanims would be to have external
> sources/bytecode for your classes, imported them in
> groovy and than weaved. It may become interesting.

 If I'm understanding Mohan correctly, I think he just means a sort of
interactive pointcut matcher, so you could type in a pointcut and you'd
see what matches you get on your inpath, something like this:

C:\>ajsh -inpath myjar1.jar;adir\others.jar

ajsh> call(fi.mypackage.*.*(..)) && !within(fi.mypackage.*);
fi.otherpackage.SomeClass:57  : method-call(double
fi.mypackage.AClass.doSomething(int) : double d =
anObjectFromThatPackage.doSomething(1);
fi.otherpackage.SomeClass:112 : method-call(void
fi.mypackage.XClass.save(int) : x.save();
...

 No weaving is necessary.

 That would be quite a handy tool. = )


 BTW, would something similar be usable in AJDT, i.e. you could click
on a pointcut and see a sort of "wincvs annotation" style list of
matches, like above (with the actual code that matches shown)? The texts
would naturally act as hyperlinks to the actual code, and different
matches could have different background color to make it easy to tell
them apart. The columns could be turned on/off, e.g. if you do not wish
to see what joinpoint matched but just the source code or vice versa. I
think this would complement the present Cross References view nicely (or
maybe this functionality could be added to that view?).
 Sounds cool to me, what do you others think?



     .::Antti::.


_______________________________________________
aspectj-users mailing list
aspectj-users@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/aspectj-users

_______________________________________________
aspectj-users mailing list
aspectj-users@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/aspectj-users


Back to the top