[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[List Home]
|
[aspectj-users] pointcut based on method return type annotation
|
- From: Davide <d@xxxxxxx>
- Date: Fri, 21 May 2010 10:01:54 +0200
- Delivered-to: aspectj-users@eclipse.org
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:sender:reply-to:received :date:x-google-sender-auth:message-id:subject:from:to:content-type; bh=KmDw5/bZH/45YfuwpitN4m/QxH5SlBXtxmj/nUK5UQk=; b=LmIE5ruKS8LDywqIWpTNzYvKmu0q3HK0VjZNMsNDuw88CqyNJ4gbE0+S4obvdDDUx0 9xLq2OC4Q8T0oQyhzhR4FWEDcvqdeEAiuuh1kuYRLmCQeedLWvAcjEKjDjaWwW1dGbOn tNnhJ9O/plNg4xGckNra0zlxq799w7AbeT5HA=
- Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:sender:reply-to:date:x-google-sender-auth:message-id :subject:from:to:content-type; b=uD/jXaszZK6p3G4mRzIk3+A5BUg85aE5S7jxHhIlsdUk3rUj8lW0b/ohQr/aoMWecR Ua+btRKgVuXvnjK7hL8ZxRCt9i6OgwRO5aGRyxIuc2YaExqPbIWPtjgAb0NwIoJVcbib bh7bA5cRqTZG8Zt72sY2qvGPi0ldkoDBM1bkM=
Using:
@AfterReturning(pointcut = "execution(@Contract * *(..))", returning = "newval")
will match all methods that have annotation Contract.
@Contract
T method1(...)
But I like to match all methods which return type class has an
annotation of type Contract
@Contract
class T
{
}
T method1(...)
it is possible this?
--
_| _. o _| _
(_| (_| \/ | (_| (/_