forked from fanruan/finekit
richie
5 years ago
3 changed files with 40 additions and 1 deletions
@ -0,0 +1,21 @@
|
||||
package com.fanruan.api.conf; |
||||
|
||||
import com.fr.config.holder.Conf; |
||||
import com.fr.config.holder.factory.Holders; |
||||
|
||||
/** |
||||
* @author richie |
||||
* @version 10.0 |
||||
* Created by richie on 2019-08-15 |
||||
* 配置对象操作类 |
||||
*/ |
||||
public class HolderKit { |
||||
|
||||
public static <T> Conf<T> simple(T t) { |
||||
return Holders.simple(t); |
||||
} |
||||
|
||||
public static <T> Conf<T> obj(T t, Class<T> type) { |
||||
return Holders.obj(t, type); |
||||
} |
||||
} |
Loading…
Reference in new issue