01: /*
02: * User: mrettig
03: * Date: Jul 23, 2002
04: * Time: 10:33:17 AM
05: */
06: package net.sourceforge.jaxor.api;
07:
08: import java.io.Serializable;
09:
10: /**
11: * This interface should be implemented if an object wishes to be
12: * notified when values within an AbstractMapper instance have been
13: * changed.
14: */
15:
16: public interface ValueChangeListener extends Serializable {
17:
18: /**
19: * This method notifies the listener when the mapper's value has
20: * changed. Both the old and new values are supplied as well as
21: * the mapper for additional interrogation purposes.
22: *
23: * @param newValue the new value for the mapper
24: * @param oldValue the old value of the mapper
25: * @param mapper the mapper which was changed
26: */
27:
28: public boolean registerChange(Object newValue, Object oldValue,
29: FieldAdapter mapper);
30: }
|