Class MapContext
- java.lang.Object
-
- com.supermap.services.components.MapContext
-
- All Implemented Interfaces:
- ComponentContext
Deprecated.test use only --ahnan
@Deprecated public class MapContext extends java.lang.Object implements ComponentContext
The context information of the map service component.
Through this interface, you can obtain the configuration information of the map service component, obtain the attribute information, and judge whether the map is provided by the remote service.
-
-
Constructor Summary
Constructors Constructor and Description MapContext()Deprecated.The Constructor.
-
Method Summary
Methods Modifier and Type Method and Description MapConfiggetConfig()Deprecated.Gets map service component configuration information.<T> TgetConfig(java.lang.Class<T> clz)Deprecated.Returns the corresponding configuration object according to the specified parameter typejava.lang.StringgetProperty(java.lang.String key)Deprecated.Gets the value of a particular attribute information.java.util.List<java.lang.String>getPropertyNames()Deprecated.Gets the list of names for attribute information.<T> TgetProvider(java.lang.Class<T> clz, java.util.List<ProviderSelector> selectors)Deprecated.Select the corresponding service provider based on the parameter type and the service provider selectorjava.util.List<MapProvider>getProviders()Deprecated.Gets the list of map service providers that correspond to the current map service component.<T> java.util.List<T>getProviders(java.lang.Class<T> clz)Deprecated.Gets all the corresponding service providers according to the typevoidsetConfig(MapConfig config)Deprecated.Sets map service component configuration information.voidsetMapProviderSettings(java.util.List<MapProviderSetting> providerSettings)Deprecated.Sets the map service provider settings list.voidsetProperties(java.util.Map<java.lang.String,java.lang.String> properties)Deprecated.Sets the attribute information.voidsetProviders(java.util.List<MapProvider> providers)Deprecated.Sets the list of map service providers that correspond to the current map service component.
-
-
-
Method Detail
-
setConfig
public void setConfig(MapConfig config)
Deprecated.Sets map service component configuration information.
- Parameters:
config- Map service component configuration information.
-
getConfig
public MapConfig getConfig()
Deprecated.Gets map service component configuration information.
- Returns:
- Map service component configuration information.
-
setProperties
public void setProperties(java.util.Map<java.lang.String,java.lang.String> properties)
Deprecated.Sets the attribute information.
The attribute information is a HashMap, key records the name of a property information, value records the value of the attribute information. In the development of the expansion, you can use this method to set some of the property information, such as setting the query layer filtering information etc.
- Parameters:
properties- property information. The parameter can not be empty, and the length is greater than zero.
-
getProperty
public java.lang.String getProperty(java.lang.String key)
Deprecated.Gets the value of a particular attribute information.
The attribute information is a HashMap, key records the name of a property information, value records the value of the attribute information.
Returns null if this mapping does not contain any mappings for the key of attribute information.
- Specified by:
getPropertyin interfaceComponentContext- Parameters:
key- Key, that is, the name of a property information.- Returns:
- Specifies the value which the key of the attribute information is mapped to. Returns null if this map does not contain a mapping for the key.
-
getPropertyNames
public java.util.List<java.lang.String> getPropertyNames()
Deprecated.Gets the list of names for attribute information.
The attribute information is a HashMap, key records the name of a property information, value records the value of the attribute information.
- Returns:
- List of names for attribute information.
-
setMapProviderSettings
public void setMapProviderSettings(java.util.List<MapProviderSetting> providerSettings)
Deprecated.Sets the map service provider settings list.
- Parameters:
providerSettings- the data service provider settings list.
-
getProviders
public java.util.List<MapProvider> getProviders()
Deprecated.Gets the list of map service providers that correspond to the current map service component.
- Returns:
- Map service providers list.
-
setProviders
public void setProviders(java.util.List<MapProvider> providers)
Deprecated.Sets the list of map service providers that correspond to the current map service component.
- Parameters:
providers- A list of map service providers.
-
getConfig
public <T> T getConfig(java.lang.Class<T> clz)
Deprecated.Returns the corresponding configuration object according to the specified parameter type- Specified by:
getConfigin interfaceComponentContext- Parameters:
clz- parameter type.- Returns:
- Configure the object
-
getProvider
public <T> T getProvider(java.lang.Class<T> clz, java.util.List<ProviderSelector> selectors)Deprecated.Select the corresponding service provider based on the parameter type and the service provider selector- Specified by:
getProviderin interfaceComponentContext- Parameters:
clz- parameter type.selectors- the list of selectors- Returns:
- The service provider which parameter type correspond to
-
getProviders
public <T> java.util.List<T> getProviders(java.lang.Class<T> clz)
Deprecated.Gets all the corresponding service providers according to the type- Specified by:
getProvidersin interfaceComponentContext- Parameters:
clz- parameter type.- Returns:
- Returns all service providers corresponding to the parameters
-
-