Annotation Type FieldModified

public @interface FieldModified

Indicates that the marked method should be called when a field on an attached object is modified.

The method can have any name, but should take a single parameter which is either a FieldModifiedEvent or any superclass. Otherwise, an IllegalArgumentException will be thrown by PojoCache.addListener(java.lang.Object)


    public class MyListener()
       public void handleModified(FieldModifiedEvent event)
          System.out.println("Object = " + even.getSource());

Jason T. Greene