@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 and Description |
---|
MapContext()
Deprecated.
The Constructor.
|
Modifier and Type | Method and Description |
---|---|
MapConfig |
getConfig()
Deprecated.
Gets map service component configuration information.
|
<T> T |
getConfig(java.lang.Class<T> clz)
Deprecated.
Returns the corresponding configuration object according to the specified parameter type
|
java.lang.String |
getProperty(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> 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
|
java.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 type
|
void |
setConfig(MapConfig config)
Deprecated.
Sets map service component configuration information.
|
void |
setMapProviderSettings(java.util.List<MapProviderSetting> providerSettings)
Deprecated.
Sets the map service provider settings list.
|
void |
setProperties(java.util.Map<java.lang.String,java.lang.String> properties)
Deprecated.
Sets the attribute information.
|
void |
setProviders(java.util.List<MapProvider> providers)
Deprecated.
Sets the list of map service providers that correspond to the current map service component.
|
public void setConfig(MapConfig config)
Sets map service component configuration information.
config
- Map service component configuration information.public MapConfig getConfig()
Gets map service component configuration information.
public void setProperties(java.util.Map<java.lang.String,java.lang.String> properties)
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.
properties
- property information. The parameter can not be empty, and the length is greater than zero.public java.lang.String getProperty(java.lang.String key)
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.
getProperty
in interface ComponentContext
key
- Key, that is, the name of a property information.public java.util.List<java.lang.String> getPropertyNames()
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.
public void setMapProviderSettings(java.util.List<MapProviderSetting> providerSettings)
Sets the map service provider settings list.
providerSettings
- the data service provider settings list.public java.util.List<MapProvider> getProviders()
Gets the list of map service providers that correspond to the current map service component.
public void setProviders(java.util.List<MapProvider> providers)
Sets the list of map service providers that correspond to the current map service component.
providers
- A list of map service providers.public <T> T getConfig(java.lang.Class<T> clz)
getConfig
in interface ComponentContext
clz
- parameter type.public <T> T getProvider(java.lang.Class<T> clz, java.util.List<ProviderSelector> selectors)
getProvider
in interface ComponentContext
clz
- parameter type.selectors
- the list of selectorspublic <T> java.util.List<T> getProviders(java.lang.Class<T> clz)
getProviders
in interface ComponentContext
clz
- parameter type.