接口 ConfigFileService
public interface ConfigFileService
The service of config file.
Property and yaml file can be convert to ConfigKVFile which provide a series of common tools and methods.
- 作者:
- lepdou 2022-03-01
-
方法概要
修饰符和类型 方法 说明 ConfigFilegetConfigFile(ConfigFileMetadata configFileMetadata)Get the original configuration fileConfigFilegetConfigFile(java.lang.String namespace, java.lang.String fileGroup, java.lang.String fileName)Get the original configuration fileConfigKVFilegetConfigPropertiesFile(ConfigFileMetadata configFileMetadata)Automatically parse the config file into properties format, and provide a series of common tools and methodsConfigKVFilegetConfigPropertiesFile(java.lang.String namespace, java.lang.String fileGroup, java.lang.String fileName)Automatically parse the config file into properties format, and provide a series of common tools and methodsConfigKVFilegetConfigYamlFile(ConfigFileMetadata configFileMetadata)Automatically parse the configuration file into yaml format, and provide a series of common tools and methodsConfigKVFilegetConfigYamlFile(java.lang.String namespace, java.lang.String fileGroup, java.lang.String fileName)Automatically parse the configuration file into yaml format, and provide a series of common tools and methods
-
方法详细资料
-
getConfigPropertiesFile
ConfigKVFile getConfigPropertiesFile(java.lang.String namespace, java.lang.String fileGroup, java.lang.String fileName)Automatically parse the config file into properties format, and provide a series of common tools and methods- 参数:
namespace- namespace of config filefileGroup- file group of config filefileName- file name- 返回:
- config properties file
-
getConfigPropertiesFile
Automatically parse the config file into properties format, and provide a series of common tools and methods- 参数:
configFileMetadata- config file metadata- 返回:
- properties file
-
getConfigYamlFile
ConfigKVFile getConfigYamlFile(java.lang.String namespace, java.lang.String fileGroup, java.lang.String fileName)Automatically parse the configuration file into yaml format, and provide a series of common tools and methods- 参数:
namespace- namespace of config filefileGroup- file group of config filefileName- file name- 返回:
- config yaml file
-
getConfigYamlFile
Automatically parse the configuration file into yaml format, and provide a series of common tools and methods- 参数:
configFileMetadata- config file metadata- 返回:
- yaml file
-
getConfigFile
ConfigFile getConfigFile(java.lang.String namespace, java.lang.String fileGroup, java.lang.String fileName)Get the original configuration file- 参数:
namespace- namespace of config filefileGroup- file group of config filefileName- file name- 返回:
- config file
-
getConfigFile
Get the original configuration file- 参数:
configFileMetadata- config file metadata- 返回:
- config file
-