See http://dev.eclipse.org/mhonarc/lists/aspectj-users/msg06671.html
for an example of how to use this feature in AspectJ
From:
[EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Peter Murray
Sent: Friday, September 15, 2006
8:22 AM
To: [email protected]
Subject: Re: [aspectj-users]
Another Noobie Question
Thanks, Michael. Do
you know the syntax of that feature or where the documentation lives for
AspectWerkz? I looked, but didn't really find comprehensive reference
docs at their website.
Would it be something like:
declare parents: hasField(@Transactional * *) implements TransactionalMarker
Cheers,
pete
On 9/15/06, Michael
Nascimento < [EMAIL PROTECTED]>
wrote:
There is an undocumented AJ feature, borrowed from AW, that can do
that: hasMethod/hasField.
I really think it is time it is integrated into AJ, since questions
like these regularly pop up in this list and it was implemented in AW
and worked fine (no one ever complained about its design there).
Besides that, it is one of the main reasons that projects that use AW
cannot migrate to AJ (genesis included).
Regards,
Michael Nascimento Santos
https://genesis.dev.java.net/
http://today.java.net/pub/au/80
On 9/15/06, Peter Murray <[EMAIL PROTECTED]>
wrote:
>
> I'd like to be able to add a marker interface to all classes having
members
> which are annotated @Transactional. Is there a way to specify a
complex
> match like that?
>
> declare parents: <classes with members which @Transactional>
implements
> TransactionalMarker
>
> Any thoughts?
>
> --
> -pete
> peter m. murray
> [EMAIL PROTECTED]
> _______________________________________________
> aspectj-users mailing list
> [email protected]
> https://dev.eclipse.org/mailman/listinfo/aspectj-users
>
>
>
_______________________________________________
aspectj-users mailing list
[email protected]
https://dev.eclipse.org/mailman/listinfo/aspectj-users
--
-pete
peter m. murray
[EMAIL PROTECTED]
|
_______________________________________________
aspectj-users mailing list
[email protected]
https://dev.eclipse.org/mailman/listinfo/aspectj-users