01: /*
02: * @(#)Observer.java 1.17 01/12/03
03: *
04: * Copyright 2002 Sun Microsystems, Inc. All rights reserved.
05: * SUN PROPRIETARY/CONFIDENTIAL. Use is subject to license terms.
06: */
07: package de.jwic.util;
08:
09: import java.io.Serializable;
10:
11: /**
12: * This is a Serializable version of the java.util.Observable class. It is
13: * recommend to use this version instead of the original one as the
14: * original one does not support serializsation.
15: *
16: * @author Florian Lippisch (original from Chris Warth)
17: * @see java.util.Observer
18: * @see de.jwic.util.SerObservable
19: */
20: public interface SerObserver extends Serializable {
21: /**
22: * This method is called whenever the observed object is changed. An
23: * application calls an <tt>Observable</tt> object's
24: * <code>notifyObservers</code> method to have all the object's
25: * observers notified of the change.
26: *
27: * @param o the observable object.
28: * @param arg an argument passed to the <code>notifyObservers</code>
29: * method.
30: */
31: void update(SerObservable o, Object arg);
32: }
|