1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21 package gnu.inet.ftp;
22
23 import java.util.Vector;
24
25 public abstract interface ConnectionEventSource {
26
27 /***
28 * register a connection listener with the event source. Each
29 * ConnectionListener registered with the event source will be notified when
30 * a connection event occurs.
31 *
32 * @param listener
33 * the ConnectionListener to register with the event source
34 */
35 public abstract void addConnectionListener(ConnectionListener listener);
36
37 /***
38 * register a set of connection listenesr with the event source. Each
39 * ConnectionListener registered with the event source will be notified when
40 * a connection event occurs.
41 *
42 * @param listeners
43 * the ConnectionListeners to register with the event source
44 */
45 public abstract void addConnectionListeners(Vector listeners);
46
47 /***
48 * deregister a connection listener with the event source. Once a listener
49 * has been de-registered, it should not receive any more connection events.
50 *
51 * @param listener
52 * the ConnectionListener to de-register
53 */
54 public abstract void removeConnectionListener(ConnectionListener listener);
55
56 }