Re: [aspectwerkz-dev] args() pointcut selector and Pointcut as methods.
pope <[email protected]> Thu, 26 Aug 2004 21:11:34 +0300
| Newsgroups | gmane.comp.java.aspectwerkz.devel |
|---|---|
| Message-ID | <[email protected]> |
Alexandre Vasseur wrote:
> Hi
>
> If anyone is interested in testing new features that will soon be out,
> there is support for Pointcut with signature in cvs head - that is
> "args()" syntax as introduced by AspectJ.
>
> /** @Expression execution(* method(..)) && args(s, int) */
>
> Pointcut myPC(String s) {return null;} // it is a method ! - could be
> "void myPC(String s) {}" instead as well.
>
> // will match all "method" with "(String, int)" signature.
>
> /** @Before myPC(s) */
>
> Void myBefore(JoinPoint jp, String s) {
shouldn't be here an int too?
::the_mindstorm