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.
|
|
|
package com.fanruan.api.conf;
|
|
|
|
|
|
|
|
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 {
|
|
|
|
|
|
|
|
/**
|
|
|
|
* 从配置对象池中创建或者获取配置对象实例
|
|
|
|
* @param clazz 配置实例类型
|
|
|
|
* @param <T> 类型
|
|
|
|
* @return 配置对象
|
|
|
|
*/
|
|
|
|
static <T extends BaseConfiguration> T getConfigInstance(final Class<T> clazz) {
|
|
|
|
return ConfigContext.getConfigInstance(clazz);
|
|
|
|
}
|
|
|
|
}
|