Class CommonConfig

java.lang.Object
com.github.theword.queqiao.tool.config.CommonConfig
Direct Known Subclasses:
Config

public abstract class CommonConfig extends Object
  • Constructor Details

    • CommonConfig

      public CommonConfig(org.slf4j.Logger logger)
  • Method Details

    • readConfigFile

      protected void readConfigFile(String configFolder, String fileName)
      读取配置文件
      Parameters:
      configFolder - 配置文件所在文件夹
      fileName - 配置文件名
    • readConfigValues

      protected void readConfigValues(Path path, String fileName)
      读取配置文件内容
      Parameters:
      path - 路径
      fileName - 文件名
    • loadConfigValues

      protected abstract void loadConfigValues(Map<String,Object> configMap)
      加载配置文件内容

      由原版端实现,读取自定义 regex.yml

      Parameters:
      configMap - 配置文件内容
    • checkFileExists

      protected void checkFileExists(Path path, String fileName)
      检查配置文件是否存在
      Parameters:
      path - 路径
      fileName - 文件名