Class CommonConfig
java.lang.Object
com.github.theword.queqiao.tool.config.CommonConfig
- Direct Known Subclasses:
Config
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidcheckFileExists(Path path, String fileName) 检查配置文件是否存在org.slf4j.Loggerprotected abstract voidloadConfigValues(Map<String, Object> configMap) 加载配置文件内容protected voidreadConfigFile(String configFolder, String fileName) 读取配置文件protected voidreadConfigValues(Path path, String fileName) 读取配置文件内容
-
Constructor Details
-
CommonConfig
public CommonConfig(org.slf4j.Logger logger)
-
-
Method Details
-
getLogger
public org.slf4j.Logger getLogger() -
readConfigFile
读取配置文件- Parameters:
configFolder- 配置文件所在文件夹fileName- 配置文件名
-
readConfigValues
读取配置文件内容- Parameters:
path- 路径fileName- 文件名
-
loadConfigValues
加载配置文件内容由原版端实现,读取自定义 regex.yml
- Parameters:
configMap- 配置文件内容
-
checkFileExists
检查配置文件是否存在- Parameters:
path- 路径fileName- 文件名
-