本文整理匯總了Java中com.fasterxml.jackson.databind.DeserializationConfig.introspectClassAnnotations方法的典型用法代碼示例。如果您正苦於以下問題:Java DeserializationConfig.introspectClassAnnotations方法的具體用法?Java DeserializationConfig.introspectClassAnnotations怎麽用?Java DeserializationConfig.introspectClassAnnotations使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類com.fasterxml.jackson.databind.DeserializationConfig
的用法示例。
在下文中一共展示了DeserializationConfig.introspectClassAnnotations方法的2個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Java代碼示例。
示例1: createKeyDeserializer
import com.fasterxml.jackson.databind.DeserializationConfig; //導入方法依賴的package包/類
public KeyDeserializer createKeyDeserializer(DeserializationContext paramDeserializationContext, JavaType paramJavaType)
{
DeserializationConfig localDeserializationConfig = paramDeserializationContext.getConfig();
boolean bool = this._factoryConfig.hasKeyDeserializers();
Object localObject = null;
if (bool)
{
BeanDescription localBeanDescription = localDeserializationConfig.introspectClassAnnotations(paramJavaType.getRawClass());
Iterator localIterator2 = this._factoryConfig.keyDeserializers().iterator();
KeyDeserializer localKeyDeserializer;
do
{
if (!localIterator2.hasNext())
break;
localKeyDeserializer = ((KeyDeserializers)localIterator2.next()).findKeyDeserializer(paramJavaType, localDeserializationConfig, localBeanDescription);
localObject = localKeyDeserializer;
}
while (localKeyDeserializer == null);
}
if (localObject == null)
{
if (paramJavaType.isEnumType())
return _createEnumKeyDeserializer(paramDeserializationContext, paramJavaType);
localObject = StdKeyDeserializers.findStringBasedKeyDeserializer(localDeserializationConfig, paramJavaType);
}
if ((localObject != null) && (this._factoryConfig.hasDeserializerModifiers()))
{
Iterator localIterator1 = this._factoryConfig.deserializerModifiers().iterator();
while (localIterator1.hasNext())
localObject = ((BeanDeserializerModifier)localIterator1.next()).modifyKeyDeserializer(localDeserializationConfig, paramJavaType, (KeyDeserializer)localObject);
}
return localObject;
}
示例2: isIgnorableType
import com.fasterxml.jackson.databind.DeserializationConfig; //導入方法依賴的package包/類
protected boolean isIgnorableType(DeserializationConfig paramDeserializationConfig, BeanDescription paramBeanDescription, Class<?> paramClass, Map<Class<?>, Boolean> paramMap)
{
Boolean localBoolean1 = (Boolean)paramMap.get(paramClass);
Object localObject = localBoolean1;
if (localBoolean1 == null)
{
BeanDescription localBeanDescription = paramDeserializationConfig.introspectClassAnnotations(paramClass);
Boolean localBoolean2 = paramDeserializationConfig.getAnnotationIntrospector().isIgnorableType(localBeanDescription.getClassInfo());
localObject = localBoolean2;
if (localBoolean2 == null)
localObject = Boolean.FALSE;
}
return ((Boolean)localObject).booleanValue();
}