本文整理汇总了Java中com.fasterxml.jackson.databind.DeserializationConfig.isEnabled方法的典型用法代码示例。如果您正苦于以下问题:Java DeserializationConfig.isEnabled方法的具体用法?Java DeserializationConfig.isEnabled怎么用?Java DeserializationConfig.isEnabled使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类com.fasterxml.jackson.databind.DeserializationConfig
的用法示例。
在下文中一共展示了DeserializationConfig.isEnabled方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: constructEnumResolver
import com.fasterxml.jackson.databind.DeserializationConfig; //导入方法依赖的package包/类
protected EnumResolver<?> constructEnumResolver(Class<?> paramClass, DeserializationConfig paramDeserializationConfig, AnnotatedMethod paramAnnotatedMethod)
{
if (paramAnnotatedMethod != null)
{
Method localMethod = paramAnnotatedMethod.getAnnotated();
if (paramDeserializationConfig.canOverrideAccessModifiers())
ClassUtil.checkAndFixAccess(localMethod);
return EnumResolver.constructUnsafeUsingMethod(paramClass, localMethod);
}
if (paramDeserializationConfig.isEnabled(DeserializationFeature.READ_ENUMS_USING_TO_STRING))
return EnumResolver.constructUnsafeUsingToString(paramClass);
return EnumResolver.constructUnsafe(paramClass, paramDeserializationConfig.getAnnotationIntrospector());
}
示例2: StdValueInstantiator
import com.fasterxml.jackson.databind.DeserializationConfig; //导入方法依赖的package包/类
public StdValueInstantiator(DeserializationConfig paramDeserializationConfig, JavaType paramJavaType)
{
boolean bool;
if (paramDeserializationConfig == null)
bool = false;
else
bool = paramDeserializationConfig.isEnabled(DeserializationFeature.ACCEPT_EMPTY_STRING_AS_NULL_OBJECT);
this._cfgEmptyStringsAsObjects = bool;
String str;
if (paramJavaType == null)
str = "UNKNOWN TYPE";
else
str = paramJavaType.toString();
this._valueTypeDesc = str;
}
示例3: BeanDeserializerBuilder
import com.fasterxml.jackson.databind.DeserializationConfig; //导入方法依赖的package包/类
public BeanDeserializerBuilder(BeanDescription paramBeanDescription, DeserializationConfig paramDeserializationConfig)
{
this._beanDesc = paramBeanDescription;
this._defaultViewInclusion = paramDeserializationConfig.isEnabled(MapperFeature.DEFAULT_VIEW_INCLUSION);
}