Interface Configurable
- All Known Implementing Classes:
UltiToolsPlugin
public interface Configurable
Configurable data operation interface.
可配置的数据操作接口
-
Method Summary
Modifier and TypeMethodDescriptiondefault List<AbstractConfigEntity> <T extends AbstractConfigEntity>
TGet config by config type.<T extends AbstractConfigEntity>
TGet config by config path and config type.<T extends AbstractConfigEntity>
voidsaveConfig(String path, Class<T> configType) Save config by config type.
-
Method Details
-
getAllConfigs
- Returns:
- All configs
所有配置
-
getConfig
Get config by config type.通过配置类型获取配置
- Type Parameters:
T- Config type
配置类型- Parameters:
configType- Config type
配置类型- Returns:
- Config
配置
-
getConfig
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异常
-