Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: REQUIRED | OPTIONAL | DETAIL: ELEMENT

## org.jboss.cache.pojo.notification.annotation
Annotation Type FieldModified

    @Retention(value=RUNTIME)
    @Target(value=METHOD)
    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)`

Example:

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

Author:
  Jason T. Greene

Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: REQUIRED | OPTIONAL | DETAIL: ELEMENT

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