Annotation Type MapModified

public @interface MapModified

Indicates that the marked method should be called when an attached map is modified.

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


    public class MyMapener()
       public void handleModified(MapModifiedEvent event)
          System.out.println("Map = " + even.getSource());

Jason T. Greene