Re: [aspectwerkz-dev] RE: AW 1.0 beta 1.0
"Michael Nascimento Santos" <[email protected]>
| Newsgroups | gmane.comp.java.aspectwerkz.devel,gmane.comp.java.aspectwerkz.user |
|---|---|
| Message-ID | <[email protected]> |
>> 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). Hmmm... Now that you said it does seem obvious, but I guess it's not when you haven't seen it :-) I think this example should be part of the docs. >> 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? That explanation made things clear to me, although it's not much longer than the one in the docs. Maybe you should use the version you sent me now :-) That's it so far. I'll be start using 1.0-beta 1 more intensively next week. BTW, do you plan to change the public API for 1.0 final? I'll start working on a new project tomorrow and I intend to use AW 1.0b1 if its public API is going to remain somewhat stable. 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