Uses of Class
tools.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 (
tools.jackson.databind).Functionality needed for Bean introspection, required for detecting
accessors and mutators for Beans, as well as locating and handling
method annotations.
Utility classes for Mapper package.
-
Uses of TypeFactory in tools.jackson.databind
Fields in tools.jackson.databind declared as TypeFactoryModifier and TypeFieldDescriptionprotected final 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 tools.jackson.databind that return TypeFactoryModifier and TypeMethodDescriptionabstract TypeFactoryDatabindContext.getTypeFactory()final TypeFactoryDeserializationContext.getTypeFactory()ObjectMapper.getTypeFactory()Accessor for getting currently configuredTypeFactoryinstance.ObjectReader.getTypeFactory()Deprecated.ObjectWriter.getTypeFactory()Deprecated.Since 3.0 useObjectWriter.typeFactory()final TypeFactorySerializationContext.getTypeFactory()JacksonModule.SetupContext.typeFactory()Accessor for findingTypeFactorythat is currently configured by the context.ObjectReader.typeFactory()ObjectWriter.typeFactory()Constructors in tools.jackson.databind with parameters of type TypeFactoryModifierConstructorDescriptionDeserializationConfig(MapperBuilder<?, ?> b, long mapperFeatures, int deserFeatures, int streamReadFeatures, int formatReadFeatures, ConfigOverrides configOverrides, CoercionConfigs coercionConfigs, TypeFactory tf, ClassIntrospector classIntr, MixInHandler mixins, SubtypeResolver str, ContextAttributes defaultAttrs, RootNameLookup rootNames, AbstractTypeResolver[] atrs) SerializationConfig(MapperBuilder<?, ?> b, long mapperFeatures, int serFeatures, int streamWriteFeatures, int formatWriteFeatures, ConfigOverrides configOverrides, TypeFactory tf, ClassIntrospector classIntr, MixInHandler mixins, SubtypeResolver str, ContextAttributes defaultAttrs, RootNameLookup rootNames, FilterProvider filterProvider) -
Uses of TypeFactory in tools.jackson.databind.cfg
Fields in tools.jackson.databind.cfg declared as TypeFactoryModifier and TypeFieldDescriptionprotected TypeFactoryMapperBuilder._typeFactorySpecific factory used for creatingJavaTypeinstances; needed to allow modules to add more custom type handling (mostly to support types of non-Java JVM languages)protected final TypeFactoryMapperBuilderState._typeFactoryprotected final TypeFactoryMapperConfigBase._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 tools.jackson.databind.cfg that return TypeFactoryModifier and TypeMethodDescriptionprotected TypeFactoryMapperBuilder._defaultTypeFactory()Overridable method for changing defaultTypeFactoryinstance to useabstract TypeFactoryMapperConfig.getTypeFactory()final TypeFactoryMapperConfigBase.getTypeFactory()MapperBuilder.typeFactory()ModuleContextBase.typeFactory()Methods in tools.jackson.databind.cfg with parameters of type TypeFactoryModifier and TypeMethodDescriptionMapperBuilder.buildDeserializationConfig(ConfigOverrides configOverrides, MixInHandler mixins, TypeFactory tf, ClassIntrospector classIntr, SubtypeResolver str, RootNameLookup rootNames, CoercionConfigs coercionConfigs) MapperBuilder.buildSerializationConfig(ConfigOverrides configOverrides, MixInHandler mixins, TypeFactory tf, ClassIntrospector classIntr, SubtypeResolver str, RootNameLookup rootNames, FilterProvider filterProvider) MapperBuilder.typeFactory(TypeFactory f) Constructors in tools.jackson.databind.cfg with parameters of type TypeFactoryModifierConstructorDescriptionprotectedMapperConfigBase(MapperBuilder<?, ?> b, long mapperFeatures, TypeFactory tf, ClassIntrospector classIntr, MixInHandler mixins, SubtypeResolver str, ConfigOverrides configOverrides, ContextAttributes defaultAttrs, RootNameLookup rootNames) Constructor used when creating a new instance (compared to that of creating fluent copies) -
Uses of TypeFactory in tools.jackson.databind.introspect
Constructors in tools.jackson.databind.introspect with parameters of type TypeFactory -
Uses of TypeFactory in tools.jackson.databind.type
Methods in tools.jackson.databind.type that return TypeFactoryModifier and TypeMethodDescriptionstatic TypeFactoryTypeFactory.createDefaultInstance()Method used to construct a new default/standardTypeFactoryinstance; an instance which has no custom configuration.TypeFactory.snapshot()Need to make a copy on snapshot() to avoid accidental leakage via cache.TypeFactory.withCache(LookupCache<Object, JavaType> cache) Mutant factory method that will construct newTypeFactorywith identical settings except for different cache.TypeFactory.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 tools.jackson.databind.type with parameters of type TypeFactoryModifier and TypeMethodDescriptionprotected Class<?>TypeParser.findClass(TypeFactory tf, String className, TypeParser.MyTokenizer tokens) abstract JavaTypeTypeModifier.modifyType(JavaType type, Type jdkType, TypeBindings context, TypeFactory typeFactory) Method called to let modifier change constructed type definition.TypeParser.parse(TypeFactory tf, String canonical) protected JavaTypeTypeParser.parseType(TypeFactory tf, TypeParser.MyTokenizer tokens, int nestingAllowed) TypeParser.parseTypes(TypeFactory tf, TypeParser.MyTokenizer tokens, int nestingAllowed) -
Uses of TypeFactory in tools.jackson.databind.util
Methods in tools.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)
ObjectReader.typeFactory()