UDig makes use of a Catalog API that provides handles to all running services.
UDig使用Catalog API 提供 handles 来运行services.
CatalogPlugin
The CatalogPlugin provides the following services:
- The concept of Handles to actual Resources
- Discovery of additional resources using Search facilities
- Programmatic Management of spatial resources
CatalogPlugin提供以下服务:
- 实际资源Resources 的句柄Handles的概念
- 使用搜索功能发现其它资源
- 程序化地管理空间资源
ICatalog
ICatalog is the interface used to represent a generic "catalog" of spatial resources and services, you can think of it as being similar to a web search engine.
ICatalog接口是用来表示一个普通的空间资源和服务的“目录”,你可以把它认为是网络搜索引擎的类似。
IService
The CatalogPlugin uses the interface IService to model a local or remote service.
CatalogPlugin使用IService接口为本地或远程服务建模。
IGeoResource
One of the most useful things stored in a catalog is actual spatial data. The IGeoResource interface represents real information, the kind you can display on screen or perform analysis on.
在目录中存储的实际空间数据是最有用的东西之一。IGeoResource接口表示那种可以显示在屏幕上或进行分析的真实信息。
IResolve
CatalogPlugin uses the model of a "handle" to allow access to spatial resources.
IResolve 插件使用handle模型来访问空间资源。
Comparison with IResource
The IResolve interface follows the same design as the normal Eclipse IResource class.
IResolve offers the following advantages over normal Eclipse IResource:
- IResolve explicitly represents a handle for a remote resource
- IResolve blocking behavior is explicit at the API level, anything that takes an IProgressMonitor or throws an IOException is blocking
- IResolve is available for RCP applications, normal IResource is part of the Eclipse IDE and cannot be used in a RCP application
- IResolve uses Java 5 enums, type narrowing and Templates for a simplified API
与IResource的比较
IResove接口是依照普通的Eclipse IResource 类设计的
相比普通Eclipse IResource 而言,IResolve 提供以下改进:
IResolve显示代表远程资源的句柄(handle)
IResolve 在API层次显示封装的行为,