AspectJ... hasChanged aspect?

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Andrew Phillipo

    AspectJ... hasChanged aspect?

    This message doesn't seem to have filtered through - so I'm going to
    post again.

    I am trying to write an aspectj aspect that does the following.

    For all setters, before() it should check the contents of the setter
    and compare it with the appropriate getter using an equals() method.
    if the objects are equal it does nothing, otherwise it changed a
    hasChanged flag to true.

    Not quite sure how to write this. Is this a good use of AOP?

    Thanks,

    Andrew Phillipo.
Working...