[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [aspectj-users] Advising all calls to all methods within a certain package
- From: Raffi Takvor Khatchadourian <khatchad@xxxxxxxxxxxxxxxxxx>
- Date: Mon, 23 Jun 2008 17:31:01 +0100
- Delivered-to: email@example.com
On 23 Jun 2008, at 16:14, Eric Bodden wrote:
2008/6/23 Raffi Takvor Khatchadourian <khatchad@xxxxxxxxxxxxxxxxxx>:
Hello. I would like to advise all calls to all methods within the
java.io package and subpackages. I have the following pointcut:
It works, however, it also advised calls to methods within
well. Anyway to fix this? Thanks!
If I am not mistaken, this should only be the case if the callee
extends a type in java.io..., which is probably what you want.
Hm, actually I am looking to advise methods declared in classes
contained in the java.io package and subpackages. Thus, I solely want to
consider the declared package names and not any inheritance hierarchies.
Am I using the correct pointcut to do so?