Interface Configurable

All Known Implementing Classes:
UltiToolsPlugin

public interface Configurable
Configurable data operation interface.

可配置的数据操作接口

  • Method Details

    • getAllConfigs

      default List<AbstractConfigEntity> getAllConfigs()
      Returns:
      All configs
      所有配置
    • getConfig

      <T extends AbstractConfigEntity> T getConfig(Class<T> configType)
      Get config by config type.

      通过配置类型获取配置

      Type Parameters:
      T - Config type
      配置类型
      Parameters:
      configType - Config type
      配置类型
      Returns:
      Config
      配置
    • getConfig

      <T extends AbstractConfigEntity> T getConfig(String path, Class<T> configType)
      Get config by config path and config type.

      通过配置路径和配置类型获取配置

      Type Parameters:
      T - Config type
      配置类型
      Parameters:
      path - Config path
      配置路径
      configType - Config type
      配置类型
      Returns:
      Config
      配置
    • saveConfig

      <T extends AbstractConfigEntity> void saveConfig(String path, Class<T> configType) throws IOException
      Save config by config type.

      通过配置类型保存配置

      Type Parameters:
      T - Config type
      配置类型
      Parameters:
      path - Config path
      配置路径
      configType - Config type
      配置类型
      Throws:
      IOException - IOException
      IO异常