01: /*
02: * GeoTools - OpenSource mapping toolkit
03: * http://geotools.org
04: * (C) 2005-2006, GeoTools Project Managment Committee (PMC)
05: * (C) 2005, Refractions Research Inc.
06: *
07: * This library is free software; you can redistribute it and/or
08: * modify it under the terms of the GNU Lesser General Public
09: * License as published by the Free Software Foundation;
10: * version 2.1 of the License.
11: *
12: * This library is distributed in the hope that it will be useful,
13: * but WITHOUT ANY WARRANTY; without even the implied warranty of
14: * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
15: * Lesser General Public License for more details.
16: */
17: package org.geotools.catalog;
18:
19: import java.util.EventListener;
20:
21: /**
22: * Allows client code to notice catalog changes.
23: *
24: * <p>
25: * You can use various visitors to explore the changes
26: * </p>
27: *
28: * @author David Zwiers, Refractions Research
29: *
30: * @since 0.6
31: * @source $URL: http://svn.geotools.org/geotools/tags/2.4.1/modules/library/api/src/main/java/org/geotools/catalog/ResolveChangeListener.java $
32: */
33: public interface ResolveChangeListener extends EventListener {
34: /**
35: * Notifies this listener that some changes are happening, or have already
36: * happened.
37: *
38: * <p>
39: * The supplied event gives details. This event object (and the resource
40: * delta within it) is valid only for the duration of the invocation of
41: * this method.
42: * </p>
43: *
44: * <p>
45: * Note that during resource change event notification, further changes to
46: * resources may be disallowed.
47: * </p>
48: *
49: * <p>
50: * Note that this method is not guaranteed to execute in the UI thread, so
51: * UI work must be performed with Display.getDefault().asyncExec();
52: * </p>
53: *
54: * @param event the resource change event
55: *
56: * @see IResourceDelta
57: */
58: void changed(ResolveChangeEvent event);
59: }
|