01: /* uDig - User Friendly Desktop Internet GIS client
02: * http://udig.refractions.net
03: * (C) 2004, Refractions Research Inc.
04: *
05: * This library is free software; you can redistribute it and/or
06: * modify it under the terms of the GNU Lesser General Public
07: * License as published by the Free Software Foundation;
08: * version 2.1 of the License.
09: *
10: * This library is distributed in the hope that it will be useful,
11: * but WITHOUT ANY WARRANTY; without even the implied warranty of
12: * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13: * Lesser General Public License for more details.
14: */
15: package net.refractions.udig.core;
16:
17: /**
18: * A generic interface for object that can be asked for a type of object.
19: *
20: * <p>
21: * Example:
22: * A draw point object requires a point to draw. However a different object is responsible
23: * for generating those points. That object could implement the Provider<Point> interface
24: * </p>
25: *
26: * @author jones
27: * @since 1.1.0
28: */
29: public interface IProvider<T> {
30: T get();
31: }
|