[
Date Prev][
Date Next][
Thread Prev][
Thread Next][
Date Index][
Thread Index]
[
List Home]
RE: [aspectj-users] RE: newbie: wildcards in pointcuts
|
> From: Joost de Vries
> Sent: Monday, March 08, 2004 1:06 AM
>
>Or just refer to a unique
> metadata tag just like when I'm referencing a class.
> Of course the new metadata spec in JDK 1.5 is ideal for this.
> I seem to
> recall that Gregor is opposed to using metadata since the code that is
> being enhanced should not have knowledge of the fact that it is being
> enhanced.
I'm not opposed to using metadata tags in pointcuts. I think there
are cases where that is exactly what you want. What I have tried to
say, but not very clearly, is that doing this all the time would be
a shame, because it violates the nice non-invasive property of using
other kinds of pointcuts. And that when you do use such tags, the
tags should be named for a property of what is true of those methods,
not for what the aspect will do. That makes the tags more reusable
by other aspects, in other configurations etc.