01: /*
02: * GeoTools - OpenSource mapping toolkit
03: * http://geotools.org
04: * (C) 2006, GeoTools Project Managment Committee (PMC)
05: *
06: * This library is free software; you can redistribute it and/or
07: * modify it under the terms of the GNU Lesser General Public
08: * License as published by the Free Software Foundation;
09: * version 2.1 of the License.
10: *
11: * This library is distributed in the hope that it will be useful,
12: * but WITHOUT ANY WARRANTY; without even the implied warranty of
13: * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14: * Lesser General Public License for more details.
15: */
16: package org.geotools.catalog.adaptable;
17:
18: import org.geotools.catalog.ResolveAdapterFactory;
19:
20: /**
21: * Implemented by {@link ResolveAdapterFactory} instances who need
22: * access to the adapting delegate of a resolve being adapted.
23: *
24: * <p>
25: * This interfaces is used only inside of the {@link AdaptingResolve}
26: * framework, and nowhere else.
27: * </p>
28: *
29: * @author Justin Deoliveira, The Open Planning Project, jdeolive@openplans.org
30: *
31: */
32: public interface AdaptingResolveAware {
33:
34: /**
35: * Sets the adapting delegate.
36: * <p>
37: * This method is always called before either of:
38: * {@link ResolveAdapterFactory#canAdapt(Resolve, Class)}
39: * {@link ResolveAdapterFactory#adapt(Resolve, Class, ProgressListener)}
40: * </p>
41: * @param adaptingResolve The adapting resolve which is a delegate for
42: * the resolve being adapted.
43: */
44: void setAdaptingResolve(AdaptingResolve adaptingResolve);
45: }
|