Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
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
	
	

<<winmail.dat>>


Back to the top