forked from fanruan/finekit
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.
21 lines
507 B
21 lines
507 B
package com.fanruan.api.conf; |
|
|
|
import com.fr.config.ConfigContext; |
|
|
|
/** |
|
* @author richie |
|
* @version 10.0 |
|
* Created by richie on 2019-08-16 |
|
*/ |
|
public class ConfigContextKit { |
|
|
|
/** |
|
* 从配置对象池中创建或者获取配置对象实例 |
|
* @param clazz 配置实例类型 |
|
* @param <T> 类型 |
|
* @return 配置对象 |
|
*/ |
|
public static <T extends BaseConfiguration> T getConfigInstance(final Class<T> clazz) { |
|
return ConfigContext.getConfigInstance(clazz); |
|
} |
|
}
|
|
|