gu.sql2java.excel.json.BaseJsonDeserializeHandler Maven / Gradle / Ivy
package gu.sql2java.excel.json;
import com.google.common.base.Optional;
import com.google.common.base.Throwables;
import com.google.common.collect.ImmutableMap;
import gu.sql2java.excel.annotations.ExcelHandlerAdapter;
import static com.google.common.base.Strings.isNullOrEmpty;
import static net.gdface.json.JsonSupports.jsonSupportInstance;
import static com.google.common.base.Preconditions.checkNotNull;
/**
* JSON类型字段使用自定义反序列化器实现的数据导入适配器抽象实现
* @author guyadong
* @since 3.29.0
*/
public abstract class BaseJsonDeserializeHandler implements ExcelHandlerAdapter {
protected final DES initDeserializer;
@SuppressWarnings("rawtypes")
protected final Class initType;
protected final Object initEmptyValue;
private volatile Optional deserializer;
@SuppressWarnings("rawtypes")
private volatile Optional type;
private volatile Optional