All Downloads are FREE. Search and download functionalities are using the official Maven repository.

cn.tangjiabao.halodb.utils.bean.BeanUtils Maven / Gradle / Ivy

Go to download

Orm whitch The highest development efficiency and Efficiency is the fastest

There is a newer version: 0.17
Show newest version
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