Annotation Type ListModified

public @interface ListModified

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

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


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

Jason T. Greene

Copyright © 2008 JBoss, a division of Red Hat. All Rights Reserved.