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

Actually the benefit that would be most appreciated right now might be the syntax related issue. A prototype pointcut matcher should help us understand the complicated syntax.
 
I faced some issues when I was learning the syntax when
 
1. I tried to migrate from AspectWerkz to AspectJ
2. I tried  to understand how to use JDK 5 features in AspectWerkz and now Aspectj.
3. Generics / AspectJ
 
Once this hurdle is crossed it can be used for actual prototyping.
 
Thanks,
Mohan

________________________________

From: aspectj-users-bounces@xxxxxxxxxxx on behalf of Matthew Webster
Sent: Fri 9/16/2005 9:18 PM
To: aspectj-users@xxxxxxxxxxx
Subject: RE: [aspectj-users] AOP tools







Bo,

You can also use "-XshowWeaveInfo" which can be set in the project
properties.

Matthew Webster
AOSD Project
Java Technology Centre, MP146
IBM Hursley Park, Winchester,  SO21 2JN, England
Telephone: +44 196 2816139 (external) 246139 (internal)
Email: Matthew Webster/UK/IBM @ IBMGB, matthew_webster@xxxxxxxxxx
http://w3.hursley.ibm.com/~websterm/

Bo Yi <boyi@xxxxxxxxxx>@eclipse.org on 16/09/2005 15:48:51

Please respond to aspectj-users@xxxxxxxxxxx

Sent by:    aspectj-users-bounces@xxxxxxxxxxx


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"                                                        
    <rdifrango@captechventures                                            
    .com>                                                               To
    Sent by:                                             <aspectj-users@ec
    aspectj-users-bounces@ecli                           lipse.org>       
    pse.org                                                             cc
                                                                          
    09/16/2005 10:11 AM                                            Subject
                                                         RE:              
          Please respond to                              [aspectj-users]  
            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



_______________________________________________
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




This message is for the designated recipient only and may contain privileged, proprietary, or otherwise private information.  If you have received it in error, please notify the sender immediately and delete the original.  Any other use of the email by you is prohibited.

<<winmail.dat>>