[aspectwerkz-dev] RE: AW 1.0 beta 1.0
"Jonas Boner" <[email protected]>
| Newsgroups | gmane.comp.java.aspectwerkz.devel |
|---|---|
| Message-ID | <5A87ED8F2E79A74297A57E17552CAFDC038DAE7F__4347.89734795249$1089267230$gmane$org@ukhwex01.emea.bea.com> |
Hi Michael. > -----Original Message----- > From: Michael Nascimento Santos [mailto:[email protected]] > Sent: Thursday, July 08, 2004 2:17 AM > To: [email protected]; aspectwerkz-user > Cc: Jonas Boner; alex-he/e8N7AIe/[email protected] > Subject: AW 1.0 beta 1.0 > > Hi Jonas and Alex, > > First of all, congratulations for the new beta. It is great > to see better versions of AW out so fast. Thanks. We are eager to hear what the community thinks about it and are waiting for bugreports :-) > > I've just read the docs and intend to try it next week. > However, just by reading the docs it does not seem possible > with to define a pointcut using the current grammar that > selects just the non-static methods of a class. Am I wrong? You can do this easily using: !static Like: 'execution(!static * Foo.*(..))' which will pick out all non-static methods in the class Foo. (You can also write 'execution(not static * Foo.*(..))' if you prefer). If this does not work (should since it is covered by a test case), then we have a bug. > > Also, docs don't make clear the distinction between the > within and the withincode constructs and there are no > examples comparing both. That would be useful. It is a matter of scope. Within(<type>) is within the scope of a certain type (class) while withincode(<method sig>) has the scope of a method. For advice you never use them alone but to narrow the scope of what you are interested in. Useful in f.e. call() and handler() pointcuts. What do you think I should document? Which part is not clear enough? Thanks. /Jonas > > Regards, > ------------------------------------------------------------- > Michael Nascimento Santos > JSR 207 Expert Group Member > JSR Community Manager - http://community.java.net/jsr > Organizacao SouJava - http://www.soujava.org.br Thinlet - > http://www.thinlet.com > http://www.javablogs.com.br/blogs/page/soujavamisterm > http://today.java.net/pub/au/80 >