本文整理汇总了Java中org.codehaus.jackson.map.type.TypeFactory.unknownType方法的典型用法代码示例。如果您正苦于以下问题:Java TypeFactory.unknownType方法的具体用法?Java TypeFactory.unknownType怎么用?Java TypeFactory.unknownType使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类org.codehaus.jackson.map.type.TypeFactory
的用法示例。
在下文中一共展示了TypeFactory.unknownType方法的7个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: getType
import org.codehaus.jackson.map.type.TypeFactory; //导入方法依赖的package包/类
protected JavaType getType(TypeBindings paramTypeBindings, TypeVariable<?>[] paramArrayOfTypeVariable)
{
if ((paramArrayOfTypeVariable != null) && (paramArrayOfTypeVariable.length > 0))
{
paramTypeBindings = paramTypeBindings.childInstance();
int i = paramArrayOfTypeVariable.length;
int j = 0;
if (j < i)
{
TypeVariable<?> localTypeVariable = paramArrayOfTypeVariable[j];
paramTypeBindings._addPlaceholder(localTypeVariable.getName());
Type localType = localTypeVariable.getBounds()[0];
if (localType == null);
for (JavaType localJavaType = TypeFactory.unknownType(); ; localJavaType = paramTypeBindings.resolveType(localType))
{
paramTypeBindings.addBinding(localTypeVariable.getName(), localJavaType);
j++;
break;
}
}
}
return paramTypeBindings.resolveType(getGenericType());
}
示例2: findStdBeanDeserializer
import org.codehaus.jackson.map.type.TypeFactory; //导入方法依赖的package包/类
protected JsonDeserializer<Object> findStdBeanDeserializer(DeserializationConfig paramDeserializationConfig, DeserializerProvider paramDeserializerProvider, JavaType paramJavaType, BeanProperty paramBeanProperty)
throws JsonMappingException
{
JsonDeserializer localJsonDeserializer1 = (JsonDeserializer)_simpleDeserializers.get(paramJavaType);
if (localJsonDeserializer1 != null)
return localJsonDeserializer1;
if (AtomicReference.class.isAssignableFrom(paramJavaType.getRawClass()))
{
JavaType[] arrayOfJavaType = paramDeserializationConfig.getTypeFactory().findTypeParameters(paramJavaType, AtomicReference.class);
if ((arrayOfJavaType == null) || (arrayOfJavaType.length < 1));
for (JavaType localJavaType = TypeFactory.unknownType(); ; localJavaType = arrayOfJavaType[0])
return new StdDeserializer.AtomicReferenceDeserializer(localJavaType, paramBeanProperty);
}
JsonDeserializer localJsonDeserializer2 = this.optionalHandlers.findDeserializer(paramJavaType, paramDeserializationConfig, paramDeserializerProvider);
if (localJsonDeserializer2 != null)
return localJsonDeserializer2;
return null;
}
示例3: findStdBeanDeserializer
import org.codehaus.jackson.map.type.TypeFactory; //导入方法依赖的package包/类
protected JsonDeserializer<Object> findStdBeanDeserializer(DeserializationConfig paramDeserializationConfig, DeserializerProvider paramDeserializerProvider, JavaType paramJavaType, BeanProperty paramBeanProperty)
{
Class localClass = paramJavaType.getRawClass();
JsonDeserializer localJsonDeserializer = (JsonDeserializer)_simpleDeserializers.get(new ClassKey(localClass));
if (localJsonDeserializer != null);
do
{
return localJsonDeserializer;
if (AtomicReference.class.isAssignableFrom(localClass))
{
JavaType[] arrayOfJavaType = paramDeserializationConfig.getTypeFactory().findTypeParameters(paramJavaType, AtomicReference.class);
if ((arrayOfJavaType == null) || (arrayOfJavaType.length <= 0));
for (JavaType localJavaType = TypeFactory.unknownType(); ; localJavaType = arrayOfJavaType[0])
return new AtomicReferenceDeserializer(localJavaType, paramBeanProperty);
}
localJsonDeserializer = this.optionalHandlers.findDeserializer(paramJavaType, paramDeserializationConfig, paramDeserializerProvider);
}
while (localJsonDeserializer != null);
return null;
}
示例4: buildIterableSerializer
import org.codehaus.jackson.map.type.TypeFactory; //导入方法依赖的package包/类
protected JsonSerializer<?> buildIterableSerializer(SerializationConfig paramSerializationConfig, JavaType paramJavaType, BasicBeanDescription paramBasicBeanDescription, BeanProperty paramBeanProperty, boolean paramBoolean)
{
JavaType localJavaType = paramJavaType.containedType(0);
if (localJavaType == null)
localJavaType = TypeFactory.unknownType();
TypeSerializer localTypeSerializer = createTypeSerializer(paramSerializationConfig, localJavaType, paramBeanProperty);
return ContainerSerializers.iterableSerializer(localJavaType, usesStaticTyping(paramSerializationConfig, paramBasicBeanDescription, localTypeSerializer, paramBeanProperty), localTypeSerializer, paramBeanProperty);
}
示例5: buildIteratorSerializer
import org.codehaus.jackson.map.type.TypeFactory; //导入方法依赖的package包/类
protected JsonSerializer<?> buildIteratorSerializer(SerializationConfig paramSerializationConfig, JavaType paramJavaType, BasicBeanDescription paramBasicBeanDescription, BeanProperty paramBeanProperty, boolean paramBoolean)
{
JavaType localJavaType = paramJavaType.containedType(0);
if (localJavaType == null)
localJavaType = TypeFactory.unknownType();
TypeSerializer localTypeSerializer = createTypeSerializer(paramSerializationConfig, localJavaType, paramBeanProperty);
return ContainerSerializers.iteratorSerializer(localJavaType, usesStaticTyping(paramSerializationConfig, paramBasicBeanDescription, localTypeSerializer, paramBeanProperty), localTypeSerializer, paramBeanProperty);
}
示例6: buildIterableSerializer
import org.codehaus.jackson.map.type.TypeFactory; //导入方法依赖的package包/类
protected JsonSerializer<?> buildIterableSerializer(SerializationConfig paramSerializationConfig, JavaType paramJavaType, BasicBeanDescription paramBasicBeanDescription, BeanProperty paramBeanProperty, boolean paramBoolean)
{
JavaType localJavaType = paramJavaType.containedType(0);
if (localJavaType == null)
localJavaType = TypeFactory.unknownType();
TypeSerializer localTypeSerializer = createTypeSerializer(paramSerializationConfig, localJavaType, paramBeanProperty);
return StdContainerSerializers.iterableSerializer(localJavaType, usesStaticTyping(paramSerializationConfig, paramBasicBeanDescription, localTypeSerializer, paramBeanProperty), localTypeSerializer, paramBeanProperty);
}
示例7: buildIteratorSerializer
import org.codehaus.jackson.map.type.TypeFactory; //导入方法依赖的package包/类
protected JsonSerializer<?> buildIteratorSerializer(SerializationConfig paramSerializationConfig, JavaType paramJavaType, BasicBeanDescription paramBasicBeanDescription, BeanProperty paramBeanProperty, boolean paramBoolean)
{
JavaType localJavaType = paramJavaType.containedType(0);
if (localJavaType == null)
localJavaType = TypeFactory.unknownType();
TypeSerializer localTypeSerializer = createTypeSerializer(paramSerializationConfig, localJavaType, paramBeanProperty);
return StdContainerSerializers.iteratorSerializer(localJavaType, usesStaticTyping(paramSerializationConfig, paramBasicBeanDescription, localTypeSerializer, paramBeanProperty), localTypeSerializer, paramBeanProperty);
}