Is it possible with Javassist to modify an existing field so that a method is called when the field is accessed or changed?
You can replace the code for accessing a field
(i.e. client-side code) with the code for calling
a method.
See javassist.expr.ExprEditor for details.