com.supermap.services.components

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
      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.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • MapContext

        public MapContext()
        
        Deprecated. 

        The Constructor.

    • 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:
        getProperty in interface ComponentContext
        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:
        getConfig in interface ComponentContext
        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:
        getProvider in interface ComponentContext
        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:
        getProviders in interface ComponentContext
        Parameters:
        clz - parameter type.
        Returns:
        Returns all service providers corresponding to the parameters