public class ArrayBlockingQueueDeserializer extends CollectionDeserializer
ArrayBlockingQueue has no
default constructor AND because it has size limit used for constructing
underlying storage automatically.CollectionDeserializer.CollectionReferringAccumulatorJsonDeserializer.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, isCachablefindBackReference, getContentType, getEmptyAccessPattern, getEmptyValue, getValueType, supportsUpdategetValueClass, handledTypegetDelegatee, getEmptyValue, getKnownPropertyNames, getNullAccessPattern, getNullValue, getNullValue, getObjectIdReader, replaceDelegatee, unwrappingDeserializerpublic 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
JsonDeserializerJsonDeserializer.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 CollectionDeserializerjava.io.IOExceptionpublic java.lang.Object deserializeWithType(JsonParser p, DeserializationContext ctxt, TypeDeserializer typeDeserializer) throws java.io.IOException
StdDeserializerdeserializeWithType in class CollectionDeserializertypeDeserializer - Deserializer to use for handling type informationjava.io.IOException"Copyright © 2010 - 2020 Adobe Systems Incorporated. All Rights Reserved"