Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[aspectj-users] Aspect Annotation Around Advice to Hide Values

I need to annotate a property on a class or it's "getter" method like
the following:

@MyAnnotation(property="myField")
public Double getPrice() {
  return price;
}

The goal of the annotation is to perform an around advice where it
inspects myField's value on the annotated method's class or property's
class checks whether the value of myField is a specific value and if so;
it returns the value from proceed() otherwise it is to default to
returning null instead.

Can someone show me how to accomplish this or is this not possible? 



Back to the top