插件开发工具库,推荐依赖该工具库。
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

23 lines
582 B

package com.fanruan.api.conf;
5 years ago
import com.fr.config.ConfigContext;
import com.fr.config.DefaultConfiguration;
/**
* @author richie
* @version 10.0
* Created by richie on 2019-08-16
*/
public abstract class BaseConfiguration extends DefaultConfiguration {
5 years ago
/**
* 从配置对象池中创建或者获取配置对象实例
* @param clazz 配置实例类型
* @param <T> 类型
* @return 配置对象
*/
static <T extends BaseConfiguration> T getConfigInstance(final Class<T> clazz) {
return ConfigContext.getConfigInstance(clazz);
}
}