[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
|
[ews.eclipse.technology.aspectj] Re: Per This aspects
|
Hello,
> In AspectJ 5, we've added the pertypewithin(TypePattern) pointcut
> designator that should do exactly what you need. You can find the
> details here:
> http://www.eclipse.org/aspectj/doc/next/adk15notebook/pertypewithin.html
Thanks for your answer. I didn't knew about this one (should have looked
into the 5.0 doc though...).
Additionally I want to apologise for my totally unclear post. I think I was
to tired when I wrote it. What I meant was a per-instance and not a
per-this instantiation. So I was voting for a per-instance(Classpattern)
aspect, with a way to navigate from the aspect instances to the associated
class. However I was able to achieve what I wanted, by storing the data I
planned to have in the aspect, in the classes using an intertype
declaration, and exposing the class with a target pointcut.
Anyways, thanks everyone for the help.
Best regards
Benjamin