|
From: Vincent M. <vm...@oc...> - 2001-08-22 06:41:25
|
I don't know what covariance and contravariance are but after reading their introduction paper, I really want to try it. I may even try it on Cactus real soon to see how it goes. There is even an Ant task to help for the build (not that it changes much). Also, if you read their paper, you'll find a screenshot of their IDE extension. They have plugins for JBuilder 4/5 and Netbeans. The concept is great. It seems very easy and great for unit testing/debugging. For other things, it looks a bit more complex but probably simply requires training. -Vincent ----- Original Message ----- From: "Tim Mackinnon" <tim...@po...> To: <moc...@li...> Sent: Wednesday, August 22, 2001 2:05 AM Subject: RE: [Mockobjects-java-dev] AOP : Aspect Oriented Programming > The kicker has always been getting good IDE support to work out what got > woven in - not sure if they have made any progress on this? There are some > good examples of weaving in patterns like observer etc. which I thought were > good at the time I looked at it - and it did fire my brain a year back when > working on the original mock stuff but I never found a good moment to use > it. > > There were also some issues with co-variance and contravariance at the time > I looked at it - they had arbitrarily chosen the wrong way and broke the > rules, but I remember Gregor saying they would consider changing it. > > Tim > > > -----Original Message----- > > From: moc...@li... > > [mailto:moc...@li...]On Behalf Of > > Steve Freeman > > Sent: 22 August 2001 12:54 am > > To: moc...@li... > > Subject: Re: [Mockobjects-java-dev] AOP : Aspect Oriented Programming > > > > > > I've known about this stuff for a while but have quite never > > found the time to do anything with it. > > > > Time to give it a try? > > > > Steve > > > > > > ----- Original Message ----- > > From: "Vincent Massol" <vm...@oc...> > > To: <moc...@li...> > > Sent: Monday, August 20, 2001 2:10 PM > > Subject: [Mockobjects-java-dev] AOP : Aspect Oriented Programming > > > > > > > I have discovered AOP this week end (AspectJ) and found it very very > > > interesting, especially for unit testing purposes. I highly > > suggest that you > > > take 30 minutes to an hour to read the "getting started" paper > > > (http://aspectj.org/doc/gettingStarted/index.html). > > > > > > I find the idea great. In a few words, the idea is that there exist some > > > crosscutting aspects (hence the name: AspectJ) that encompasses several > > > methods. For example, let's say you want to log the entry and exits of > > > methods. This is a general pattern. In java, it would be very > > difficult to > > > materialize this aspect. You would have to add log statements at the > > > beginning and end of each method, but still you would not have > > captured the > > > pattern. Also, if you add a new method, you have to remember to add log > > > statements. > > > > > > AspectJ let you describe aspects in its own semantic (near > > java). Then, you > > > apply the aspect compiler which will transform the code in java > > and invoke > > > the javac compiler to compile it. > > > > > > It is very very powerful. You can say things like verify that > > such method is > > > only called by such other method when it is in such context. There are > > > better examples (with code) given in the paper highlighted above. > > > > > > Just wanted to let you know > > > -Vincent > > > > > > > > > _______________________________________________ > > > Mockobjects-java-dev mailing list > > > Moc...@li... > > > http://lists.sourceforge.net/lists/listinfo/mockobjects-java-dev > > > > > 2?$¡¸ÞrÛ#jözùsSX§,X¬´Ê'?ãyËl«ÚuëåSËl²<«qçè®§zØm¶Yÿ-+-²Ê.ÇY¢¸ > > ë-+-³ùb²Ø§~æ¡É(n7o¶ÈÚ½§^ > > > _______________________________________________ > Mockobjects-java-dev mailing list > Moc...@li... > http://lists.sourceforge.net/lists/listinfo/mockobjects-java-dev > |