[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [aspectj-users] Package to package pointcut
- From: Keitaro <keitaro_2@xxxxxxxx>
- Date: Tue, 17 Jul 2007 10:45:18 -0700 (PDT)
- Delivered-to: firstname.lastname@example.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= ;
I found the solution to my problem. I was just missing
some dots. The following pointcut works:
: within(package1.*) && call(* package2.*.*(..));
--- Keitaro <keitaro_2@xxxxxxxx> wrote:
> I have problems getting my Pointcut to work and I
> 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?
Sick sense of humor? Visit Yahoo! TV's
Comedy with an Edge to see what's on, when.