richie
5 years ago
3 changed files with 11 additions and 22 deletions
@ -1,21 +0,0 @@
|
||||
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); |
||||
} |
||||
} |
Loading…
Reference in new issue