com.supermap.services.components.spi

Interface ProviderContext



  • public interface ProviderContext
    

    Service provider context interface.

    Used to obtain the configuration information of the service provider and other service providers used by the service provider.

    • Field Summary

      Fields 
      Modifier and Type Field and Description
      static java.lang.String PROVIDERNAME 
    • Method Summary

      Methods 
      Modifier and Type Method and Description
      <T> T getConfig(java.lang.Class<T> clz)
      Gets the corresponding service provider configuration information according to the configuration type of the service provider.
      java.lang.String getProperty(java.lang.String propertyName)
      Gets system properties
      <T> java.util.List<T> getProviders(java.lang.Class<T> clz)
      Obtains a list of other service providers used by the service provider based on the service provider type.
    • Method Detail

      • getConfig

        <T> T getConfig(java.lang.Class<T> clz)
        

        Gets the corresponding service provider configuration information according to the configuration type of the service provider.

        Parameters:
        clz - Service provider configuration type.
        Returns:
        Service provider configuration information.
      • getProviders

        <T> java.util.List<T> getProviders(java.lang.Class<T> clz)
        

        Obtains a list of other service providers used by the service provider based on the service provider type.

        Parameters:
        clz - Service provider type.
        Returns:
        Service provider lists.
      • getProperty

        java.lang.String getProperty(java.lang.String propertyName)
        
        Gets system properties

        The method may return null, there are outputPath, outputSite two properties temporarily.

        Parameters:
        propertyName - The name of the attribute to be obtained is case sensitive.
        Returns: