Home
last modified time | relevance | path

Searched refs:getTypeFactory (Results 1 – 25 of 54) sorted by relevance

123

/external/jackson-databind/src/test/java/com/fasterxml/jackson/databind/type/
DTestTypeFactoryWithClassLoader.java51 …TypeFactory spySut = spy(mapper.getTypeFactory().withModifier(typeModifier).withClassLoader(classL… in testUsesCorrectClassLoaderWhenThreadClassLoaderIsNull()
63 …TypeFactory spySut = spy(mapper.getTypeFactory().withModifier(typeModifier).withClassLoader(classL… in testUsesCorrectClassLoaderWhenThreadClassLoaderIsNotNull()
74 TypeFactory sut = mapper.getTypeFactory().withModifier(typeModifier); in testCallingOnlyWithModifierGivesExpectedResults()
81 TypeFactory sut = mapper.getTypeFactory().withClassLoader(classLoader); in testCallingOnlyWithClassLoaderGivesExpectedResults()
88 TypeFactory sut = mapper.getTypeFactory().withModifier(typeModifier).withClassLoader(classLoader); in testDefaultTypeFactoryNotAffectedByWithConstructors()
91 Assert.assertNull(mapper.getTypeFactory().getClassLoader()); in testDefaultTypeFactoryNotAffectedByWithConstructors()
92 Assert.assertArrayEquals(null,mapper.getTypeFactory()._modifiers); in testDefaultTypeFactoryNotAffectedByWithConstructors()
97 TypeFactory sut = mapper.getTypeFactory().withModifier(typeModifier).withClassLoader(classLoader); in testSetsTheCorrectClassLoderIfUsingWithModifierFollowedByWithClassLoader()
103 TypeFactory sut = mapper.getTypeFactory().withClassLoader(classLoader).withModifier(typeModifier); in testSetsTheCorrectClassLoderIfUsingWithClassLoaderFollowedByWithModifier()
109 TypeFactory spySut = spy(mapper.getTypeFactory()); in testThreadContextClassLoaderIsUsedIfNotUsingWithClassLoader()
[all …]
DContainerTypesTest.java29 JavaType t = MAPPER.getTypeFactory() in testExplicitCollectionType()
37 JavaType t = MAPPER.getTypeFactory() in testImplicitCollectionType()
47 TypeFactory tf = MAPPER.getTypeFactory().withCache(new LRUMap<Object,JavaType>(4, 8)); in testMissingCollectionType()
56 JavaType t = MAPPER.getTypeFactory() in testExplicitMapType()
66 JavaType t = MAPPER.getTypeFactory() in testImplicitMapType()
82 MAPPER.getTypeFactory() in testMismatchedCollectionType()
95 MAPPER.getTypeFactory() in testMismatchedMapType()
104 MAPPER.getTypeFactory() in testMismatchedMapType()
DRecursiveTypeTest.java94 TypeFactory tf = objectMapper().getTypeFactory(); in testJavaTypeToString()
108 TypeFactory tf = objectMapper().getTypeFactory(); in testSuperClassWithReferencedJavaType()
DDeprecatedConstructType1456Test.java33 … JavaType resolvedType = MAPPER.getTypeFactory().constructType(entityType, ImplController.class); in testGenericResolutionUsingDeprecated()
DRecursiveType1658Test.java48 JavaType resolved = mapper.getTypeFactory() in testRecursive1658()
DPolymorphicList036Test.java95 … JavaType type = MAPPER.getTypeFactory().constructCollectionType(StringyList.class, String.class); in testPolymorphicWithOverride()
/external/jackson-databind/src/test/java/com/fasterxml/jackson/databind/convert/
DCoerceContainersTest.java30 final JavaType listType = VANILLA_MAPPER.getTypeFactory() in testScalarCollections()
40 final JavaType listType = VANILLA_MAPPER.getTypeFactory() in testStringCollections()
56 final JavaType mapType = VANILLA_MAPPER.getTypeFactory() in testScalarMap()
66 final JavaType mapType = VANILLA_MAPPER.getTypeFactory() in testEnumMap()
82 final JavaType arrayType = VANILLA_MAPPER.getTypeFactory() in testObjectArray()
92 final JavaType arrayType = VANILLA_MAPPER.getTypeFactory() in testStringArray()
/external/jackson-databind/src/main/java/com/fasterxml/jackson/databind/
DDatabindContext.java151 return getTypeFactory().constructType(type); in constructType()
182 JavaType t = getTypeFactory().constructFromCanonical(subClassName); in resolveSubType()
189 cls = getTypeFactory().findClass(subClassName); in resolveSubType()
199 return getTypeFactory().constructSpecializedType(baseType, cls); in resolveSubType()
227 cls = getTypeFactory().findClass(subClass); in resolveAndValidateSubType()
239 final JavaType subType = config.getTypeFactory().constructSpecializedType(baseType, cls); in resolveAndValidateSubType()
262 JavaType subType = getTypeFactory().constructFromCanonical(subClass); in _resolveAndValidateGeneric()
305 public abstract TypeFactory getTypeFactory(); in getTypeFactory() method in DatabindContext
DDeserializationContext.java289 public final TypeFactory getTypeFactory() { in getTypeFactory() method in DeserializationContext
290 return _config.getTypeFactory(); in getTypeFactory()
302 return getConfig().getTypeFactory().constructSpecializedType(baseType, subclass, false); in constructSpecializedType()
671 return getTypeFactory().findClass(className); in findClass()
895 return readValue(p, getTypeFactory().constructType(type)); in readValue()
920 return readPropertyValue(p, prop, getTypeFactory().constructType(type)); in readPropertyValue()
DObjectReader.java755 return forType(_config.getTypeFactory().constructType(valueTypeRef.getType())); in forType()
779 return forType(_config.getTypeFactory().constructType(valueType)); in withType()
787 return forType(_config.getTypeFactory().constructType(valueTypeRef.getType())); in withType()
980 public TypeFactory getTypeFactory() { in getTypeFactory() method in ObjectReader
981 return _config.getTypeFactory(); in getTypeFactory()
2363 t = getTypeFactory().constructType(JsonNode.class); in _jsonNodeType()
DModule.java149 public TypeFactory getTypeFactory(); in getTypeFactory() method
/external/jackson-databind/src/main/java/com/fasterxml/jackson/databind/cfg/
DMapperConfig.java293 public final TypeFactory getTypeFactory() { in getTypeFactory() method in MapperConfig
294 return _base.getTypeFactory(); in getTypeFactory()
306 return getTypeFactory().constructType(cls); in constructType()
318 return getTypeFactory().constructType(valueTypeRef.getType()); in constructType()
323 return getTypeFactory().constructSpecializedType(baseType, subclass, true); in constructSpecializedType()
/external/jackson-databind/src/test/java/com/fasterxml/jackson/databind/module/
DTestTypeModifiers.java239 … JavaType type = MAPPER_WITH_MODIFIER.getTypeFactory().constructParametricType(MapMarker.class, in testMapLikeTypeViaParametric()
277 mapper.setTypeFactory(mapper.getTypeFactory().withModifier(new MyTypeModifier())); in testCollectionLikeSerialization()
285 mapper.setTypeFactory(mapper.getTypeFactory().withModifier(new MyTypeModifier())); in testMapLikeSerialization()
295 mapper.setTypeFactory(mapper.getTypeFactory().withModifier(new MyTypeModifier())); in testCollectionLikeDeserialization()
306 mapper.setTypeFactory(mapper.getTypeFactory().withModifier(new MyTypeModifier())); in testMapLikeDeserialization()
DTestTypeModifierNameResolution.java50 mapper.setTypeFactory(mapper.getTypeFactory().withModifier(new CustomTypeModifier())); in testTypeModiferNameResolution()
/external/jackson-databind/src/main/java/com/fasterxml/jackson/databind/jsontype/impl/
DStdTypeResolverBuilder.java174 defaultImpl = config.getTypeFactory().constructType(_defaultImpl); in defineDefaultImpl()
180 defaultImpl = config.getTypeFactory() in defineDefaultImpl()
DMinimalClassNameIdResolver.java44 return new MinimalClassNameIdResolver(baseType, config.getTypeFactory(), ptv); in construct()
DClassNameIdResolver.java44 return new ClassNameIdResolver(baseType, config.getTypeFactory(), ptv); in construct()
/external/jackson-databind/src/test/java/com/fasterxml/jackson/databind/deser/
DNullHandlingTest.java149 JavaType type = mapper.getTypeFactory().constructCollectionType(List.class, String.class); in testListOfNulls()
173 … JavaType type = mapper.getTypeFactory().constructMapType(Map.class, String.class, String.class); in testMapOfNulls()
/external/jackson-databind/src/test/java/com/fasterxml/jackson/databind/jsontype/
DAbstractTypeMapping1186Test.java40 mapper.getTypeFactory().constructParametricType(IContainer.class, MyObject.class)); in testDeserializeMyContainer()
/external/jackson-databind/src/main/java/com/fasterxml/jackson/databind/module/
DSimpleAbstractTypeResolver.java80 return config.getTypeFactory().constructSpecializedType(type, dst); in findTypeMapping()
/external/jackson-databind/src/main/java/com/fasterxml/jackson/databind/introspect/
DAnnotatedClassResolver.java146 _bindings, _intr, _mixInResolver, _config.getTypeFactory(), in resolveFully()
155 _bindings, _intr, _mixInResolver, _config.getTypeFactory(), in resolveWithoutSuperTypes()
/external/jackson-databind/src/test/java/com/fasterxml/jackson/databind/jsontype/ext/
DExternalTypeCustomResolverTest.java166 … return context.getTypeFactory().constructType(FormOfPayment.valueOf(id).getDetailsClass ()); in typeFromId()
400 … return context.getTypeFactory().constructType(FormOfPayment.valueOf (id).getDetailsClass ()); in typeFromId()
/external/jackson-databind/src/test/java/com/fasterxml/jackson/databind/interop/
DDeprecatedTypeHandling1102Test.java95 TypeFactory tf = MAPPER.getTypeFactory(); in testDeprecatedTypeResolution()
/external/jackson-databind/src/main/java/com/fasterxml/jackson/databind/deser/
DDeserializerCache.java352 JavaType delegateType = conv.getInputType(ctxt.getTypeFactory()); in _createDeserializer()
449 JavaType delegateType = conv.getInputType(ctxt.getTypeFactory()); in findConvertingDeserializer()
/external/jackson-databind/src/test/java/com/fasterxml/jackson/databind/introspect/
DVisibilityForSerializationTest.java160 JavaType javaType = om.getTypeFactory().constructType(TCls.class); in testVisibilityFeatures()

123