1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23 package eteg.sinon.listener;
24
25 import eteg.sinon.core.Catalog;
26 import eteg.sinon.executor.CollectorExecutor;
27 import eteg.sinon.executor.CatalogState;
28
29 /***
30 * Interface implemented by classes that receive catalog state notifications.
31 * Implementations of this interface must have a public, static method
32 * named <code>getInstance</code> that returns an instance of this class.
33 *
34 * @author <a href="mailto:thiagohp at users.sourceforge.net">Thiago H. de Paula Figueiredo</a>
35 * @author Last modified by $Author: thiagohp $
36 * @version $Revision: 1.3 $
37 */
38 public interface CatalogStateListener {
39
40 /***
41 * Invoked when the state of a listened catalog changes.
42 *
43 * @param catalog the {@link Catalog} instance that had its state changed.
44 * @param state the {@link CatalogState}.
45 * @param executor the {@link CollectorExecutor} being executed.
46 */
47 public void onStateChange(Catalog catalog,
48 CatalogState state,
49 CollectorExecutor executor);
50
51 }