DSSE SPIs

Feedback


The domain spatial information service SPIs provide users with a series of interfaces for building domain spatial information service components, such as ProviderContextAware, ComponentContextAware, InterfaceContextAware and ProviderContext, ComponentContext, and InterfaceContext.

XXXContextAware is a context dependent interface that SuperMap iServer provides to service modules on each layer. Through the setXXXContext (XXXContext context) method of this interface, SuperMap iServer assigns the context information (a XXXContext object) related to a DDS in the service configuration file to the DSS, using the dependency injection technology. Once the DSS obtains XXXContext, it can directly call the linked module objects. For example, in the following figure, the setComponentContext (ComponentContext context) method of ComponentContextAware is implemented in DSSComponent which is built on the Component layer. Then the needed Provider object is obtained through ComponentContext, and the GIS functions of this object are re-arranged.