Re: [aspectwerkz-dev] args() pointcut selector and Pointcut as methods.

"Alex" <alex-he/e8N7AIe/[email protected]>
Newsgroups gmane.comp.java.aspectwerkz.devel
Message-ID <002b01c48b9b$269c3660$647ba8c0@maison>
not at all
args() can be used
- to match (and only match) a signature [that is narrowing other pointcuts]
- to grab parameter values
- a mix of both

Alex

----- Original Message -----
From: "the_mindstorm" <[email protected]>
To: <[email protected]>
Sent: Thursday, August 26, 2004 7:51 PM
Subject: Re: [aspectwerkz-dev] args() pointcut selector and Pointcut as
methods.


> 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 the int too?
>
> ::the_mindstorm
>
>
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.