com.fasterxml.jackson.databind.cfg

Class DeserializerFactoryConfig

    • Field Detail

      • NO_DESERIALIZERS

        protected static final Deserializers[] NO_DESERIALIZERS
      • NO_ABSTRACT_TYPE_RESOLVERS

        protected static final AbstractTypeResolver[] NO_ABSTRACT_TYPE_RESOLVERS
      • NO_VALUE_INSTANTIATORS

        protected static final ValueInstantiators[] NO_VALUE_INSTANTIATORS
      • DEFAULT_KEY_DESERIALIZERS

        protected static final KeyDeserializers[] DEFAULT_KEY_DESERIALIZERS
        By default we plug default key deserializers using as "just another" set of of key deserializers.
        Since:
        2.2
      • _additionalDeserializers

        protected final Deserializers[] _additionalDeserializers
        List of providers for additional deserializers, checked before considering default basic or bean deserializers.
      • _additionalKeyDeserializers

        protected final KeyDeserializers[] _additionalKeyDeserializers
        List of providers for additional key deserializers, checked before considering standard key deserializers.
      • _abstractTypeResolvers

        protected final AbstractTypeResolver[] _abstractTypeResolvers
        List of objects that may be able to resolve abstract types to concrete types. Used by functionality like "mr Bean" to materialize types as needed.
      • _valueInstantiators

        protected final ValueInstantiators[] _valueInstantiators
        List of objects that know how to create instances of POJO types; possibly using custom construction (non-annoted constructors; factory methods external to value type etc). Used to support objects that are created using non-standard methods; or to support post-constructor functionality.
    • Constructor Detail

      • DeserializerFactoryConfig

        public DeserializerFactoryConfig()
        Constructor for creating basic configuration with no additional handlers.
    • Method Detail

      • withAdditionalDeserializers

        public DeserializerFactoryConfig withAdditionalDeserializers(Deserializers additional)
        Fluent/factory method used to construct a configuration object that has same deserializer providers as this instance, plus one specified as argument. Additional provider will be added before existing ones, meaning it has priority over existing definitions.
      • withAdditionalKeyDeserializers

        public DeserializerFactoryConfig withAdditionalKeyDeserializers(KeyDeserializers additional)
        Fluent/factory method used to construct a configuration object that has same key deserializer providers as this instance, plus one specified as argument. Additional provider will be added before existing ones, meaning it has priority over existing definitions.
      • withDeserializerModifier

        public DeserializerFactoryConfig withDeserializerModifier(BeanDeserializerModifier modifier)
        Fluent/factory method used to construct a configuration object that has same configuration as this instance plus one additional deserialiazer modifier. Added modifier has the highest priority (that is, it gets called before any already registered modifier).
      • withAbstractTypeResolver

        public DeserializerFactoryConfig withAbstractTypeResolver(AbstractTypeResolver resolver)
        Fluent/factory method used to construct a configuration object that has same configuration as this instance plus one additional abstract type resolver. Added resolver has the highest priority (that is, it gets called before any already registered resolver).
      • withValueInstantiators

        public DeserializerFactoryConfig withValueInstantiators(ValueInstantiators instantiators)
        Fluent/factory method used to construct a configuration object that has same configuration as this instance plus specified additional value instantiator provider object. Added instantiator provider has the highest priority (that is, it gets called before any already registered resolver).
        Parameters:
        instantiators - Object that can provide ValueInstantiators for constructing POJO values during deserialization
      • hasDeserializers

        public boolean hasDeserializers()
      • hasKeyDeserializers

        public boolean hasKeyDeserializers()
      • hasDeserializerModifiers

        public boolean hasDeserializerModifiers()
      • hasAbstractTypeResolvers

        public boolean hasAbstractTypeResolvers()
      • hasValueInstantiators

        public boolean hasValueInstantiators()

Copyright © 2008–2020 FasterXML. All rights reserved.