Uses of Class
com.fasterxml.jackson.databind.type.TypeFactory
Packages that use TypeFactory
Package
Description
Basic data binding (mapping) functionality that
allows for reading JSON content into Java Objects (POJOs)
and JSON Trees (
JsonNode), as well as
writing Java Objects and trees as JSON.Package that contains most of configuration-related classes;
exception being couple of most-commonly used configuration
things (like Feature enumerations) that are at the
main level (
com.fasterxml.jackson.databind).Contains those implementation classes of deserialization part of
data binding that are not considered part of public or semi-public
interfaces.
Functionality needed for Bean introspection, required for detecting
accessors and mutators for Beans, as well as locating and handling
method annotations.
Package that contains standard implementations for
TypeResolverBuilder
and
TypeIdResolver.Utility classes for Mapper package.
-
Uses of TypeFactory in com.fasterxml.jackson.databind
Fields in com.fasterxml.jackson.databind declared as TypeFactoryModifier and TypeFieldDescriptionprotected TypeFactoryObjectMapper._typeFactorySpecific factory used for creatingJavaTypeinstances; needed to allow modules to add more custom type handling (mostly to support types of non-Java JVM languages)Methods in com.fasterxml.jackson.databind that return TypeFactoryModifier and TypeMethodDescriptionabstract TypeFactoryDatabindContext.getTypeFactory()final TypeFactoryDeserializationContext.getTypeFactory()Module.SetupContext.getTypeFactory()Accessor for findingTypeFactorythat is currently configured by the context.ObjectMapper.getTypeFactory()Accessor for getting currently configuredTypeFactoryinstance.ObjectReader.getTypeFactory()ObjectWriter.getTypeFactory()final TypeFactorySerializerProvider.getTypeFactory()Methods in com.fasterxml.jackson.databind with parameters of type TypeFactoryModifier and TypeMethodDescriptionObjectMapper.setTypeFactory(TypeFactory f) Method that can be used to overrideTypeFactoryinstance used by this mapper. -
Uses of TypeFactory in com.fasterxml.jackson.databind.cfg
Fields in com.fasterxml.jackson.databind.cfg declared as TypeFactoryModifier and TypeFieldDescriptionprotected final TypeFactoryBaseSettings._typeFactorySpecific factory used for creatingJavaTypeinstances; needed to allow modules to add more custom type handling (mostly to support types of non-Java JVM languages)Methods in com.fasterxml.jackson.databind.cfg that return TypeFactoryModifier and TypeMethodDescriptionBaseSettings.getTypeFactory()final TypeFactoryMapperConfig.getTypeFactory()Methods in com.fasterxml.jackson.databind.cfg with parameters of type TypeFactoryModifier and TypeMethodDescriptionMapperBuilder.typeFactory(TypeFactory f) final TMapperConfigBase.with(TypeFactory tf) Method for constructing and returning a new instance with differentTypeFactoryto use.BaseSettings.withTypeFactory(TypeFactory tf) Constructors in com.fasterxml.jackson.databind.cfg with parameters of type TypeFactoryModifierConstructorDescriptionBaseSettings(ClassIntrospector ci, AnnotationIntrospector ai, PropertyNamingStrategy pns, TypeFactory tf, TypeResolverBuilder<?> typer, DateFormat dateFormat, HandlerInstantiator hi, Locale locale, TimeZone tz, com.fasterxml.jackson.core.Base64Variant defaultBase64, PolymorphicTypeValidator ptv) Deprecated.BaseSettings(ClassIntrospector ci, AnnotationIntrospector ai, PropertyNamingStrategy pns, TypeFactory tf, TypeResolverBuilder<?> typer, DateFormat dateFormat, HandlerInstantiator hi, Locale locale, TimeZone tz, com.fasterxml.jackson.core.Base64Variant defaultBase64, PolymorphicTypeValidator ptv, AccessorNamingStrategy.Provider accNaming) Deprecated.BaseSettings(ClassIntrospector ci, AnnotationIntrospector ai, PropertyNamingStrategy pns, TypeFactory tf, TypeResolverBuilder<?> typer, DateFormat dateFormat, HandlerInstantiator hi, Locale locale, TimeZone tz, com.fasterxml.jackson.core.Base64Variant defaultBase64, PolymorphicTypeValidator ptv, AccessorNamingStrategy.Provider accNaming, CacheProvider cacheProvider) -
Uses of TypeFactory in com.fasterxml.jackson.databind.deser.impl
Methods in com.fasterxml.jackson.databind.deser.impl with parameters of type TypeFactoryModifier and TypeMethodDescriptionJavaUtilCollectionsDeserializers.JavaUtilCollectionsConverter.getInputType(TypeFactory typeFactory) JavaUtilCollectionsDeserializers.JavaUtilCollectionsConverter.getOutputType(TypeFactory typeFactory) -
Uses of TypeFactory in com.fasterxml.jackson.databind.introspect
Fields in com.fasterxml.jackson.databind.introspect declared as TypeFactoryModifier and TypeFieldDescriptionprotected final TypeFactoryAnnotatedClass._typeFactoryprivate final TypeFactoryAnnotatedFieldCollector._typeFactoryprivate final TypeFactoryTypeResolutionContext.Basic._typeFactoryprivate final TypeFactoryTypeResolutionContext.Empty._typeFactoryMethods in com.fasterxml.jackson.databind.introspect with parameters of type TypeFactoryModifier and TypeMethodDescriptionprivate List<AnnotatedMethod> AnnotatedCreatorCollector._findPotentialFactories(TypeFactory typeFactory, JavaType type, Class<?> primaryMixIn) (package private) AnnotatedClass.CreatorsAnnotatedCreatorCollector.collect(TypeFactory typeFactory, JavaType type, Class<?> primaryMixIn) (package private) AnnotatedMethodMapAnnotatedMethodCollector.collect(TypeFactory typeFactory, TypeResolutionContext tc, JavaType mainType, List<JavaType> superTypes, Class<?> primaryMixIn) static AnnotatedClass.CreatorsAnnotatedCreatorCollector.collectCreators(AnnotationIntrospector intr, TypeFactory typeFactory, TypeResolutionContext tc, JavaType type, Class<?> primaryMixIn, boolean collectAnnotations) static List<AnnotatedField> AnnotatedFieldCollector.collectFields(AnnotationIntrospector intr, TypeResolutionContext tc, ClassIntrospector.MixInResolver mixins, TypeFactory types, JavaType type, boolean collectAnnotations) static AnnotatedMethodMapAnnotatedMethodCollector.collectMethods(AnnotationIntrospector intr, TypeResolutionContext tc, ClassIntrospector.MixInResolver mixins, TypeFactory types, JavaType type, List<JavaType> superTypes, Class<?> primaryMixIn, boolean collectAnnotations) static TypeResolutionContextMethodGenericTypeResolver.narrowMethodTypeParameters(Method candidate, JavaType requestedType, TypeFactory typeFactory, TypeResolutionContext emptyTypeResCtxt) Constructors in com.fasterxml.jackson.databind.introspect with parameters of type TypeFactoryModifierConstructorDescription(package private)AnnotatedClass(JavaType type, Class<?> rawType, List<JavaType> superTypes, Class<?> primaryMixIn, Annotations classAnnotations, TypeBindings bindings, AnnotationIntrospector aintr, ClassIntrospector.MixInResolver mir, TypeFactory tf) Deprecated.(package private)AnnotatedClass(JavaType type, Class<?> rawType, List<JavaType> superTypes, Class<?> primaryMixIn, Annotations classAnnotations, TypeBindings bindings, AnnotationIntrospector aintr, ClassIntrospector.MixInResolver mir, TypeFactory tf, boolean collectAnnotations) Constructor will not do any initializations, to allow for configuring instances differently depending on use cases(package private)AnnotatedFieldCollector(AnnotationIntrospector intr, TypeFactory types, ClassIntrospector.MixInResolver mixins, boolean collectAnnotations) Basic(TypeFactory tf, TypeBindings b) Empty(TypeFactory tf) -
Uses of TypeFactory in com.fasterxml.jackson.databind.jsontype.impl
Fields in com.fasterxml.jackson.databind.jsontype.impl declared as TypeFactoryMethods in com.fasterxml.jackson.databind.jsontype.impl with parameters of type TypeFactoryModifier and TypeMethodDescriptionprotected StringClassNameIdResolver._idFrom(Object value, Class<?> cls, TypeFactory typeFactory) Constructors in com.fasterxml.jackson.databind.jsontype.impl with parameters of type TypeFactoryModifierConstructorDescriptionprotectedClassNameIdResolver(JavaType baseType, TypeFactory typeFactory) Deprecated.Since 2.10 use variant that takesPolymorphicTypeValidatorClassNameIdResolver(JavaType baseType, TypeFactory typeFactory, PolymorphicTypeValidator ptv) protectedMinimalClassNameIdResolver(JavaType baseType, TypeFactory typeFactory, PolymorphicTypeValidator ptv) protectedTypeIdResolverBase(JavaType baseType, TypeFactory typeFactory) -
Uses of TypeFactory in com.fasterxml.jackson.databind.type
Fields in com.fasterxml.jackson.databind.type declared as TypeFactoryModifier and TypeFieldDescriptionprotected final TypeFactoryTypeParser._factoryprotected static final TypeFactoryTypeFactory.instanceGlobally shared singleton.Methods in com.fasterxml.jackson.databind.type that return TypeFactoryModifier and TypeMethodDescriptionstatic TypeFactoryTypeFactory.defaultInstance()Method used to access the globally shared instance, which has no custom configuration.TypeFactory.withCache(LookupCache<Object, JavaType> cache) Mutant factory method that will construct newTypeFactorywith identical settings except for different cache.Deprecated.Since 2.12TypeFactory.withClassLoader(ClassLoader classLoader) "Mutant factory" method which will construct a new instance with specifiedClassLoaderto use byfindClass(java.lang.String).TypeFactory.withModifier(TypeModifier mod) "Mutant factory" method which will construct a new instance with specifiedTypeModifieradded as the first modifier to call (in case there are multiple registered).Methods in com.fasterxml.jackson.databind.type with parameters of type TypeFactoryModifier and TypeMethodDescriptionabstract JavaTypeTypeModifier.modifyType(JavaType type, Type jdkType, TypeBindings context, TypeFactory typeFactory) Method called to let modifier change constructed type definition.TypeParser.withFactory(TypeFactory f) Constructors in com.fasterxml.jackson.databind.type with parameters of type TypeFactory -
Uses of TypeFactory in com.fasterxml.jackson.databind.util
Methods in com.fasterxml.jackson.databind.util with parameters of type TypeFactoryModifier and TypeMethodDescriptionprotected JavaTypeStdConverter._findConverterType(TypeFactory tf) Converter.getInputType(TypeFactory typeFactory) Method that can be used to find out actual input (source) type; this usually can be determined from type parameters, but may need to be implemented differently from programmatically defined converters (which cannot change static type parameter bindings).StdConverter.getInputType(TypeFactory typeFactory) Converter.getOutputType(TypeFactory typeFactory) Method that can be used to find out actual output (target) type; this usually can be determined from type parameters, but may need to be implemented differently from programmatically defined converters (which cannot change static type parameter bindings).StdConverter.getOutputType(TypeFactory typeFactory)
CacheProviderinstead.