public class NacosConfCenterLoader extends Object
| 限定符和类型 | 字段和说明 |
|---|---|
private com.alibaba.nacos.api.config.ConfigService |
configService |
private org.springframework.core.convert.ConversionService |
conversionService |
private org.springframework.core.env.ConfigurableEnvironment |
environment |
private NacosServiceFactory |
nacosServiceFactory |
private PropertiesPlaceholderResolver |
resolver |
| 构造器和说明 |
|---|
NacosConfCenterLoader(org.springframework.core.env.ConfigurableEnvironment environment) |
| 限定符和类型 | 方法和说明 |
|---|---|
com.alibaba.nacos.api.config.ConfigService |
getConfigService() |
String |
load(String dataId,
String groupId,
com.alibaba.nacos.api.annotation.NacosProperties nacosProperties)
Load Nacos config vid dataId, groupId and
NacosProperties |
<T> T |
load(String dataId,
String groupId,
com.alibaba.nacos.api.annotation.NacosProperties nacosProperties,
Class<T> targetClass)
Load target class object from Nacos config
|
String |
load(String dataId,
String groupId,
Properties nacosProperties)
Load Nacos config vid dataId, groupId and
acos Properties |
void |
setNacosServiceFactory(NacosServiceFactory nacosServiceFactory) |
private final org.springframework.core.env.ConfigurableEnvironment environment
private final org.springframework.core.convert.ConversionService conversionService
private final PropertiesPlaceholderResolver resolver
private NacosServiceFactory nacosServiceFactory
private com.alibaba.nacos.api.config.ConfigService configService
public NacosConfCenterLoader(org.springframework.core.env.ConfigurableEnvironment environment)
public String load(String dataId, String groupId, com.alibaba.nacos.api.annotation.NacosProperties nacosProperties) throws RuntimeException
NacosPropertiesdataId - dataIdgroupId - groupIdnacosProperties - NacosPropertiesRuntimeException - If ConfigService creating is failed.public String load(String dataId, String groupId, Properties nacosProperties) throws RuntimeException
acos PropertiesdataId - dataIdgroupId - groupIdnacosProperties - acos PropertiesRuntimeException - If ConfigService creating is failed.public <T> T load(String dataId, String groupId, com.alibaba.nacos.api.annotation.NacosProperties nacosProperties, Class<T> targetClass) throws RuntimeException
T - target classdataId - dataIdgroupId - groupIdnacosProperties - NacosPropertiestargetClass - target classRuntimeException - load(String, String, NacosProperties)load(String, String, NacosProperties)public void setNacosServiceFactory(NacosServiceFactory nacosServiceFactory)
public com.alibaba.nacos.api.config.ConfigService getConfigService()
Copyright © 2021 Zodiac. All rights reserved.