public final class NacosDataParserHandler extends Object
| Modifier and Type | Method and Description |
|---|---|
String |
getFileExtension(String name) |
static NacosDataParserHandler |
getInstance() |
List<org.springframework.core.env.PropertySource<?>> |
parseNacosData(String configName,
String configValue,
String extension)
Parsing nacos configuration content.
|
public List<org.springframework.core.env.PropertySource<?>> parseNacosData(String configName, String configValue, String extension) throws IOException
configName - name of nacos-configconfigValue - value from nacos-configextension - identifies the type of configValueIOException - thrown if there is a problem parsing config.public String getFileExtension(String name)
name - filenameDEFAULT_EXTENSION if don't getpublic static NacosDataParserHandler getInstance()
Copyright © 2023 Pivotal Software, Inc.. All rights reserved.