public class ArrayBlockingQueueDeserializer extends CollectionDeserializer
ArrayBlockingQueue
has no
default constructor AND because it has size limit used for constructing
underlying storage automatically.CollectionDeserializer.CollectionReferringAccumulator
JsonDeserializer.None
Constructor and Description |
---|
ArrayBlockingQueueDeserializer(JavaType containerType,
JsonDeserializer<java.lang.Object> valueDeser,
TypeDeserializer valueTypeDeser,
ValueInstantiator valueInstantiator) |
Modifier and Type | Method and Description |
---|---|
java.util.Collection<java.lang.Object> |
deserialize(JsonParser p,
DeserializationContext ctxt,
java.util.Collection<java.lang.Object> result0)
Alternate deserialization method (compared to the most commonly
used,
JsonDeserializer.deserialize(JsonParser, DeserializationContext) ),
which takes in initialized value instance, to be
configured and/or populated by deserializer. |
java.lang.Object |
deserializeWithType(JsonParser p,
DeserializationContext ctxt,
TypeDeserializer typeDeserializer)
Base implementation that does not assume specific type
inclusion mechanism.
|
createContextual, deserialize, getContentDeserializer, getValueInstantiator, isCachable
findBackReference, getContentType, getEmptyAccessPattern, getEmptyValue, getValueType, supportsUpdate
getValueClass, handledType
getDelegatee, getEmptyValue, getKnownPropertyNames, getNullAccessPattern, getNullValue, getNullValue, getObjectIdReader, replaceDelegatee, unwrappingDeserializer
public ArrayBlockingQueueDeserializer(JavaType containerType, JsonDeserializer<java.lang.Object> valueDeser, TypeDeserializer valueTypeDeser, ValueInstantiator valueInstantiator)
public java.util.Collection<java.lang.Object> deserialize(JsonParser p, DeserializationContext ctxt, java.util.Collection<java.lang.Object> result0) throws java.io.IOException
JsonDeserializer
JsonDeserializer.deserialize(JsonParser, DeserializationContext)
),
which takes in initialized value instance, to be
configured and/or populated by deserializer.
Method is not necessarily used (or supported) by all types
(it will not work for immutable types, for obvious reasons):
most commonly it is used for Collections and Maps.
It may be used both with "updating readers" (for POJOs) and
when Collections and Maps use "getter as setter".
Default implementation just throws
UnsupportedOperationException
, to indicate that types
that do not explicitly add support do not necessarily support
update-existing-value operation (esp. immutable types)
deserialize
in class CollectionDeserializer
java.io.IOException
public java.lang.Object deserializeWithType(JsonParser p, DeserializationContext ctxt, TypeDeserializer typeDeserializer) throws java.io.IOException
StdDeserializer
deserializeWithType
in class CollectionDeserializer
typeDeserializer
- Deserializer to use for handling type informationjava.io.IOException
"Copyright © 2010 - 2020 Adobe Systems Incorporated. All Rights Reserved"