@Deprecated public class DataContext extends java.lang.Object implements ComponentContext
The context information of the data service component.
Constructor and Description |
---|
DataContext()
Deprecated.
Default constructor.
|
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.
|
public void setConfig(DataConfig config)
Sets data service component configuration information.
config
- data service component configuration information.public DataConfig getConfig()
Gets the configuration information for the data service component.
public void setDataProviderSettings(java.util.List<DataProviderSetting> providerSettings)
Sets the data service provider settings list.
providerSettings
- the data service provider settings list.public java.util.List<DataProvider> getProviders()
Gets the list of data service providers that correspond to the current data service component.
public <T> T getConfig(java.lang.Class<T> clz)
getConfig
in interface ComponentContext
clz
- parameter type.public <T> T getProvider(java.lang.Class<T> clz, java.util.List<ProviderSelector> selectors)
getProvider
in interface ComponentContext
clz
- parameter type.selectors
- the list of selectorspublic <T> java.util.List<T> getProviders(java.lang.Class<T> clz)
getProviders
in interface ComponentContext
clz
- parameter type.public void setProperties(java.util.Map<java.lang.String,java.lang.String> properties)
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.
properties
- property information. The parameter can not be empty, and the length is greater than zero.public void setProviders(java.util.List<DataProvider> providerList)
public java.lang.String getProperty(java.lang.String key)
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.
getProperty
in interface ComponentContext
key
- Key, that is, the name of a property information.public void destroy()