[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[List Home]
|
Re: [aspectj-users] Package to package pointcut
|
- From: Keitaro <keitaro_2@xxxxxxxx>
- Date: Tue, 17 Jul 2007 10:45:18 -0700 (PDT)
- Delivered-to: aspectj-users@eclipse.org
- Domainkey-signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.de; h=Message-ID:X-YMail-OSG:Received:Date:From:Subject:To:In-Reply-To:MIME-Version:Content-Type:Content-Transfer-Encoding; b=EiJuwlNlcxd5KpWBUSkqQQFuVxR/dDLNEGJD6tA/nABwgKncQrDi89dgj35HFUFoLQ7Mz5A40PHT6RpAmvP6N7lP8dtn9P6wu8m6KJkFe1zUBvKtjMvyGKRLC9KIkVBsxR8Qv+KpM5+8RXJocF+C9WUis1SPXtvvFR0rCjnqiz4= ;
Hi,
I found the solution to my problem. I was just missing
some dots. The following pointcut works:
pointcut externalDependencyCalled()
: within(package1.*) && call(* package2.*.*(..));
Best,
Keitaro
--- Keitaro <keitaro_2@xxxxxxxx> wrote:
> Hi,
>
> I have problems getting my Pointcut to work and I
> hope
> somebody could point out my error. I am trying to
> match calls, which are originated in one package and
> have another package as a target.
>
> I have tried the following Pointcut:
> pointcut externalDependencyCalled()
> : within(package1*) && call(* package2*.*(..));
>
> However, this pointcut does not match any call from
> package 1 to package 2. How do I have to correct my
> point cut?
>
> Keitaro
>
>
>
____________________________________________________________________________________
Sick sense of humor? Visit Yahoo! TV's
Comedy with an Edge to see what's on, when.
http://tv.yahoo.com/collections/222