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

com.github.zhangxd1989.basetool.convert.impl.ClassConverter Maven / Gradle / Ivy

There is a newer version: 1.0.16
Show newest version
package com.github.zhangxd1989.basetool.convert.impl;

import com.github.zhangxd1989.basetool.convert.AbstractConverter;
import com.github.zhangxd1989.basetool.util.ClassUtil;

/**
 * 类转换器
* 将类名转换为类 * * @author sheldon */ public class ClassConverter extends AbstractConverter> { @Override protected Class convertInternal(Object value) { String valueStr = convertToStr(value); try { return ClassUtil.getClassLoader().loadClass(valueStr); } catch (Exception ignored) { } return null; } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy