cn.tangjiabao.halodb.utils.bean.BeanUtils Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of haloDb Show documentation
Show all versions of haloDb Show documentation
Orm whitch The highest development efficiency and Efficiency is the fastest
package cn.tangjiabao.halodb.utils.bean;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import cn.tangjiabao.halodb.utils.exception.ExceptionUtils;
public class BeanUtils extends jodd.bean.BeanUtil {
private static Logger logger =LoggerFactory.getLogger(BeanUtils.class);
public static Object instance(Class> clazz) {
Object bean = null;
try {
bean = clazz.newInstance();
} catch (InstantiationException e) {
logger.error(ExceptionUtils.getStackTrace(e));
} catch (IllegalAccessException e) {
logger.error(ExceptionUtils.getStackTrace(e));
}
return bean;
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy