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.
22 lines
426 B
22 lines
426 B
6 years ago
|
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);
|
||
|
}
|
||
|
}
|