[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[aspectj-users] pointcut based on method return type annotation

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  _|  _
 (_| (_| \/ | (_| (/_