com.supermap.services.components
Interface ComponentContext
-
- All Known Implementing Classes:
- DataContext, MapContext
public interface ComponentContextService component context interface.
The service provider required to obtain the configuration information and service components of the service component.
-
-
Method Summary
Methods Modifier and Type Method and Description <T> TgetConfig(java.lang.Class<T> clz)Gets the corresponding service component configuration information according to the configuration type of the service component.java.lang.StringgetProperty(java.lang.String propertyName)Obtain the corresponding attribute according to the service component attribute name.<T> TgetProvider(java.lang.Class<T> clz, java.util.List<ProviderSelector> selectors)The service providers needed to get the service component.<T> java.util.List<T>getProviders(java.lang.Class<T> clz)The list of service providers needed to get the service component.
-
-
-
Method Detail
-
getConfig
<T> T getConfig(java.lang.Class<T> clz)
Gets the corresponding service component configuration information according to the configuration type of the service component.
- Parameters:
clz- the service component configuration type.- Returns:
- Service component configuration information.
-
getProviders
<T> java.util.List<T> getProviders(java.lang.Class<T> clz)
The list of service providers needed to get the service component.
- Parameters:
clz- Service provider type.- Returns:
- Service provider lists.
-
getProvider
<T> T getProvider(java.lang.Class<T> clz, java.util.List<ProviderSelector> selectors)The service providers needed to get the service component.
- Parameters:
clz- Service provider type.selectors- Service provider selector lists.- Returns:
- Service provider lists.
-
getProperty
java.lang.String getProperty(java.lang.String propertyName)
Obtain the corresponding attribute according to the service component attribute name.
- Parameters:
propertyName- The property name- Returns:
- Attribute of the property name
-
-