Class ArrayBlockingQueueDeserializer
java.lang.Object
com.fasterxml.jackson.databind.JsonDeserializer<Collection<Object>>
com.fasterxml.jackson.databind.deser.std.StdDeserializer<Collection<Object>>
com.fasterxml.jackson.databind.deser.std.ContainerDeserializerBase<Collection<Object>>
com.fasterxml.jackson.databind.deser.std.CollectionDeserializer
com.fasterxml.jackson.databind.deser.std.ArrayBlockingQueueDeserializer
- All Implemented Interfaces:
ContextualDeserializer,NullValueProvider,ValueInstantiator.Gettable,Serializable
We need a custom deserializer both because
ArrayBlockingQueue has no
default constructor AND because it has size limit used for constructing
underlying storage automatically.- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class com.fasterxml.jackson.databind.deser.std.CollectionDeserializer
CollectionDeserializer.CollectionReferringAccumulatorNested classes/interfaces inherited from class com.fasterxml.jackson.databind.JsonDeserializer
JsonDeserializer.None -
Constructor Summary
ConstructorsConstructorDescriptionArrayBlockingQueueDeserializer(JavaType containerType, JsonDeserializer<Object> valueDeser, TypeDeserializer valueTypeDeser, ValueInstantiator valueInstantiator) -
Method Summary
Modifier and TypeMethodDescriptiondeserializeWithType(JsonParser p, DeserializationContext ctxt, TypeDeserializer typeDeserializer) Base implementation that does not assume specific type inclusion mechanism.Methods inherited from class com.fasterxml.jackson.databind.deser.std.CollectionDeserializer
createContextual, deserialize, deserialize, getContentDeserializer, getValueInstantiator, isCachable, logicalTypeMethods inherited from class com.fasterxml.jackson.databind.deser.std.ContainerDeserializerBase
findBackReference, getContentType, getEmptyAccessPattern, getEmptyValue, getValueType, supportsUpdateMethods inherited from class com.fasterxml.jackson.databind.deser.std.StdDeserializer
getValueClass, getValueType, handledTypeMethods inherited from class com.fasterxml.jackson.databind.JsonDeserializer
deserializeWithType, getAbsentValue, getDelegatee, getEmptyValue, getKnownPropertyNames, getNullAccessPattern, getNullValue, getNullValue, getObjectIdReader, replaceDelegatee, unwrappingDeserializer
-
Constructor Details
-
ArrayBlockingQueueDeserializer
public ArrayBlockingQueueDeserializer(JavaType containerType, JsonDeserializer<Object> valueDeser, TypeDeserializer valueTypeDeser, ValueInstantiator valueInstantiator)
-
-
Method Details
-
deserializeWithType
public Object deserializeWithType(JsonParser p, DeserializationContext ctxt, TypeDeserializer typeDeserializer) throws IOException Description copied from class:StdDeserializerBase implementation that does not assume specific type inclusion mechanism. Sub-classes are expected to override this method if they are to handle type information.- Overrides:
deserializeWithTypein classCollectionDeserializer- Parameters:
typeDeserializer- Deserializer to use for handling type information- Throws:
IOException
-