com.supermap.services.components.spi
Interface ProviderContext
-
public interface ProviderContextService 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.StringPROVIDERNAME
-
Method Summary
Methods Modifier and Type Method and Description <T> TgetConfig(java.lang.Class<T> clz)Gets the corresponding service provider configuration information according to the configuration type of the service provider.java.lang.StringgetProperty(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.
-
-
-
Field Detail
-
PROVIDERNAME
static final java.lang.String PROVIDERNAME
- See Also:
- Constant Field Values
-
-
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 propertiesThe 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:
-
-