com.supermap.services.components

Class DataContext

  • java.lang.Object
    • com.supermap.services.components.DataContext
  • All Implemented Interfaces:
    ComponentContext

    Deprecated. 
    test use only --ahnan

    @Deprecated
    public class DataContext
    extends java.lang.Object
    implements ComponentContext
    

    The context information of the data service component.

    • Constructor Summary

      Constructors 
      Constructor and Description
      DataContext()
      Deprecated. 
      Default constructor.
    • Method Summary

      Methods 
      Modifier and Type Method and Description
      void destroy()
      Deprecated. 
       
      DataConfig getConfig()
      Deprecated. 
      Gets the configuration information for the data service component.
      <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.
      <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<DataProvider> getProviders()
      Deprecated. 
      Gets the list of data service providers that correspond to the current data 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(DataConfig config)
      Deprecated. 
      Sets data service component configuration information.
      void setDataProviderSettings(java.util.List<DataProviderSetting> providerSettings)
      Deprecated. 
      Sets the data 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<DataProvider> providerList)
      Deprecated. 
       
      • Methods inherited from class java.lang.Object

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

      • DataContext

        public DataContext()
        
        Deprecated. 

        Default constructor.

    • Method Detail

      • setConfig

        public void setConfig(DataConfig config)
        
        Deprecated. 

        Sets data service component configuration information.

        Parameters:
        config - data service component configuration information.
      • getConfig

        public DataConfig getConfig()
        
        Deprecated. 

        Gets the configuration information for the data service component.

        Returns:
        Data service component configuration information.
      • setDataProviderSettings

        public void setDataProviderSettings(java.util.List<DataProviderSetting> providerSettings)
        
        Deprecated. 

        Sets the data service provider settings list.

        Parameters:
        providerSettings - the data service provider settings list.
      • getProviders

        public java.util.List<DataProvider> getProviders()
        
        Deprecated. 

        Gets the list of data service providers that correspond to the current data service component.

        Returns:
        Service provider lists.
      • 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
      • 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.
      • setProviders

        public void setProviders(java.util.List<DataProvider> providerList)
        
        Deprecated. 
      • 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.
      • destroy

        public void destroy()
        
        Deprecated.