當前位置: 首頁>>代碼示例>>Java>>正文


Java DeserializationConfig.introspectClassAnnotations方法代碼示例

本文整理匯總了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;
}
 
開發者ID:mmmsplay10,項目名稱:QuizUpWinner,代碼行數:34,代碼來源:BasicDeserializerFactory.java

示例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();
}
 
開發者ID:mmmsplay10,項目名稱:QuizUpWinner,代碼行數:15,代碼來源:BeanDeserializerFactory.java


注:本文中的com.fasterxml.jackson.databind.DeserializationConfig.introspectClassAnnotations方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。