public class DeserializerFactoryConfig extends Object implements Serializable
DeserializerFactory
.Modifier and Type | Field and Description |
---|---|
protected AbstractTypeResolver[] |
_abstractTypeResolvers
List of objects that may be able to resolve abstract types to
concrete types.
|
protected Deserializers[] |
_additionalDeserializers
List of providers for additional deserializers, checked before considering default
basic or bean deserializers.
|
protected KeyDeserializers[] |
_additionalKeyDeserializers
List of providers for additional key deserializers, checked before considering
standard key deserializers.
|
protected BeanDeserializerModifier[] |
_modifiers
List of modifiers that can change the way
BeanDeserializer instances
are configured and constructed. |
protected 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).
|
protected static KeyDeserializers[] |
DEFAULT_KEY_DESERIALIZERS
By default we plug default key deserializers using as "just another" set of
of key deserializers.
|
protected static AbstractTypeResolver[] |
NO_ABSTRACT_TYPE_RESOLVERS |
protected static Deserializers[] |
NO_DESERIALIZERS |
protected static BeanDeserializerModifier[] |
NO_MODIFIERS |
protected static ValueInstantiators[] |
NO_VALUE_INSTANTIATORS |
Modifier | Constructor and Description |
---|---|
|
DeserializerFactoryConfig()
Constructor for creating basic configuration with no additional
handlers.
|
protected |
DeserializerFactoryConfig(Deserializers[] allAdditionalDeserializers,
KeyDeserializers[] allAdditionalKeyDeserializers,
BeanDeserializerModifier[] modifiers,
AbstractTypeResolver[] atr,
ValueInstantiators[] vi)
Copy-constructor that will create an instance that contains defined
set of additional deserializer providers.
|
Modifier and Type | Method and Description |
---|---|
Iterable<AbstractTypeResolver> |
abstractTypeResolvers() |
Iterable<BeanDeserializerModifier> |
deserializerModifiers() |
Iterable<Deserializers> |
deserializers() |
boolean |
hasAbstractTypeResolvers() |
boolean |
hasDeserializerModifiers() |
boolean |
hasDeserializers() |
boolean |
hasKeyDeserializers() |
boolean |
hasValueInstantiators() |
Iterable<KeyDeserializers> |
keyDeserializers() |
Iterable<ValueInstantiators> |
valueInstantiators() |
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.
|
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.
|
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.
|
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.
|
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.
|
protected static final Deserializers[] NO_DESERIALIZERS
protected static final BeanDeserializerModifier[] NO_MODIFIERS
protected static final AbstractTypeResolver[] NO_ABSTRACT_TYPE_RESOLVERS
protected static final ValueInstantiators[] NO_VALUE_INSTANTIATORS
protected static final KeyDeserializers[] DEFAULT_KEY_DESERIALIZERS
protected final Deserializers[] _additionalDeserializers
protected final KeyDeserializers[] _additionalKeyDeserializers
protected final BeanDeserializerModifier[] _modifiers
BeanDeserializer
instances
are configured and constructed.protected final AbstractTypeResolver[] _abstractTypeResolvers
protected final ValueInstantiators[] _valueInstantiators
public DeserializerFactoryConfig()
protected DeserializerFactoryConfig(Deserializers[] allAdditionalDeserializers, KeyDeserializers[] allAdditionalKeyDeserializers, BeanDeserializerModifier[] modifiers, AbstractTypeResolver[] atr, ValueInstantiators[] vi)
public DeserializerFactoryConfig withAdditionalDeserializers(Deserializers additional)
public DeserializerFactoryConfig withAdditionalKeyDeserializers(KeyDeserializers additional)
public DeserializerFactoryConfig withDeserializerModifier(BeanDeserializerModifier modifier)
public DeserializerFactoryConfig withAbstractTypeResolver(AbstractTypeResolver resolver)
public DeserializerFactoryConfig withValueInstantiators(ValueInstantiators instantiators)
instantiators
- Object that can provide ValueInstantiator
s for
constructing POJO values during deserializationpublic boolean hasDeserializers()
public boolean hasKeyDeserializers()
public boolean hasDeserializerModifiers()
public boolean hasAbstractTypeResolvers()
public boolean hasValueInstantiators()
public Iterable<Deserializers> deserializers()
public Iterable<KeyDeserializers> keyDeserializers()
public Iterable<BeanDeserializerModifier> deserializerModifiers()
public Iterable<AbstractTypeResolver> abstractTypeResolvers()
public Iterable<ValueInstantiators> valueInstantiators()
Copyright © 2012-2013 FasterXML. All Rights Reserved.