Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[aspectj-users] pointcut for for a getter based on annotation of the property

Hello All,

I need some help with a pointcut for for a getter execution based on the
annotation of the related property. For example:


class A {

  @SomeAnnotation
  String name;

  Interger age;

  @SomeAnnotation
  Integer weight;

  String getName() { return name; }

  Integer getAge() { return age; }

  Integer getWeight() { return weight; }

}


Now, I need a pointcut that should say "the execution of any getter of a
property that has "@SomeAnnotation" annotation". In this case "getName()"
and "getWeight()".

Can someone help, please.

Ramin
-- 
View this message in context: http://aspectj.2085585.n4.nabble.com/pointcut-for-for-a-getter-based-on-annotation-of-the-property-tp3313592p3313592.html
Sent from the AspectJ - users mailing list archive at Nabble.com.


Back to the top