|
|
|
@ -1,5 +1,6 @@
|
|
|
|
|
package com.fanruan.api.conf.xml; |
|
|
|
|
|
|
|
|
|
import com.fr.config.holder.Conf; |
|
|
|
|
import com.fr.stable.xml.XMLable; |
|
|
|
|
|
|
|
|
|
import java.util.Collection; |
|
|
|
@ -13,14 +14,15 @@ public class XmlHolderKit {
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
* 创建一个要写入配置的xml多项 |
|
|
|
|
* * @param <T> 类型 |
|
|
|
|
* @param <T> 类型 |
|
|
|
|
* @param t 配置对象 |
|
|
|
|
* @param clazz 类型 |
|
|
|
|
* @param xmlTag xml标签 |
|
|
|
|
* @return 配置对象 |
|
|
|
|
*/ |
|
|
|
|
public static <T extends XMLable> XmlConf<T> obj(T t, Class<T> clazz, String xmlTag) { |
|
|
|
|
return new XmlConf<T>(t, clazz, xmlTag); |
|
|
|
|
public static <T extends XMLable> Conf<T> obj(T t, Class<T> clazz, String xmlTag) { |
|
|
|
|
return new XmlConf(t, clazz, xmlTag); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
public static <T extends XMLable> XmlColConf<Collection<T>> collection(Collection<T> t, Class<T> clazz) { |
|
|
|
|