Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
  package com.fasterxml.jackson.databind.cfg;
  
Configuration settings container class for com.fasterxml.jackson.databind.deser.DeserializerFactory.
 
     implements java.io.Serializable // since 2.1
 {
     private static final long serialVersionUID = 3683541151102256824L;
 
     protected final static Deserializers[] NO_DESERIALIZERS = new Deserializers[0];
     protected final static BeanDeserializerModifier[] NO_MODIFIERS = new BeanDeserializerModifier[0];
     protected final static AbstractTypeResolver[] NO_ABSTRACT_TYPE_RESOLVERS = new AbstractTypeResolver[0];
     protected final static ValueInstantiators[] NO_VALUE_INSTANTIATORS = new ValueInstantiators[0];

    
By default we plug default key deserializers using as "just another" set of of key deserializers.

Since:
2.2
 
     protected final static KeyDeserializers[] DEFAULT_KEY_DESERIALIZERS = new KeyDeserializers[] {
         new StdKeyDeserializers()
     };
    
    
List of providers for additional deserializers, checked before considering default basic or bean deserializers.
 
     protected final Deserializers[] _additionalDeserializers;

    
List of providers for additional key deserializers, checked before considering standard key deserializers.
 
     protected final KeyDeserializers[] _additionalKeyDeserializers;
    
    
List of modifiers that can change the way com.fasterxml.jackson.databind.deser.BeanDeserializer instances are configured and constructed.
 
     protected final BeanDeserializerModifier[] _modifiers;


    
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.
 
     protected final AbstractTypeResolver[] _abstractTypeResolvers;

    
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.
 
     protected final ValueInstantiators[] _valueInstantiators;
    
    
Constructor for creating basic configuration with no additional handlers.
 
     public DeserializerFactoryConfig() {
         this(nullnullnullnullnull);
     }

    
Copy-constructor that will create an instance that contains defined set of additional deserializer providers.
 
     protected DeserializerFactoryConfig(Deserializers[] allAdditionalDeserializers,
             KeyDeserializers[] allAdditionalKeyDeserializers,
             BeanDeserializerModifier[] modifiers,
             AbstractTypeResolver[] atr,
             ValueInstantiators[] vi)
     {
          = (allAdditionalDeserializers == null) ?
                  : allAdditionalDeserializers;
          = (allAdditionalKeyDeserializers == null) ?
                  : allAdditionalKeyDeserializers;
          = (modifiers == null) ?  : modifiers;
          = (atr == null) ?  : atr;
          = (vi == null) ?  : vi;
     }

    
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.
 
    {
        if (additional == null) {
            throw new IllegalArgumentException("Can not pass null Deserializers");
        }
        Deserializers[] all = ArrayBuilders.insertInListNoDup(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.
    {
        if (additional == null) {
            throw new IllegalArgumentException("Can not pass null KeyDeserializers");
        }
        KeyDeserializers[] all = ArrayBuilders.insertInListNoDup(additional);
                );
    }

    
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).
    {
        if (modifier == null) {
            throw new IllegalArgumentException("Can not pass null modifier");
        }
        BeanDeserializerModifier[] all = ArrayBuilders.insertInListNoDup(modifier);
                );
    }

    
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).
    {
        if (resolver == null) {
            throw new IllegalArgumentException("Can not pass null resolver");
        }
        AbstractTypeResolver[] all = ArrayBuilders.insertInListNoDup(resolver);
                all);
    }

    
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 com.fasterxml.jackson.databind.deser.ValueInstantiators for constructing POJO values during deserialization
    {
        if (instantiators == null) {
            throw new IllegalArgumentException("Can not pass null resolver");
        }
        ValueInstantiators[] all = ArrayBuilders.insertInListNoDup(instantiators);
                all);
    }
    
    public boolean hasDeserializers() { return . > 0; }
    public boolean hasKeyDeserializers() { return . > 0; }
    
    public boolean hasDeserializerModifiers() { return . > 0; }
    public boolean hasAbstractTypeResolvers() { return . > 0; }
    public boolean hasValueInstantiators() { return . > 0; }
    
    public Iterable<Deserializersdeserializers() {
        return ArrayBuilders.arrayAsIterable();
    }
        return ArrayBuilders.arrayAsIterable();
    }
    
        return ArrayBuilders.arrayAsIterable();
    }
        return ArrayBuilders.arrayAsIterable();
    }
        return ArrayBuilders.arrayAsIterable();
    }
New to GrepCode? Check out our FAQ X