Top Description Fields Constructors Methods
com.fasterxml.jackson.databind.deser.std

public Class ArrayBlockingQueueDeserializer

extends CollectionDeserializer
Class Inheritance
Imports
java.io.IOException, java.util.*, java.util.concurrent.ArrayBlockingQueue, com.fasterxml.jackson.core.JsonParser, com.fasterxml.jackson.databind.*, com.fasterxml.jackson.databind.deser.NullValueProvider, .ValueInstantiator, com.fasterxml.jackson.databind.jsontype.TypeDeserializer

We need a custom deserializer both because ArrayBlockingQueue has no default constructor AND because it has size limit used for constructing underlying storage automatically.

Field Summary

Modifier and TypeField and Description
private static final long
Inherited from com.fasterxml.jackson.databind.deser.std.CollectionDeserializer:
_delegateDeserializer_valueDeserializer_valueInstantiator_valueTypeDeserializer

Constructor Summary

AccessConstructor and Description
public
ArrayBlockingQueueDeserializer(JavaType containerType, JsonDeserializer<Object> valueDeser, TypeDeserializer valueTypeDeser, ValueInstantiator valueInstantiator)

protected
ArrayBlockingQueueDeserializer(JavaType containerType, JsonDeserializer<Object> valueDeser, TypeDeserializer valueTypeDeser, ValueInstantiator valueInstantiator, JsonDeserializer<Object> delegateDeser, NullValueProvider nuller, Boolean unwrapSingle)

Constructor used when creating contextualized instances.

protected
ArrayBlockingQueueDeserializer(ArrayBlockingQueueDeserializer src)

Copy-constructor that can be used by sub-classes to allow copy-on-write styling copying of settings of an existing instance.

Method Summary

Modifier and TypeMethod and Description
protected Collection<Object>
protected Collection<Object>
public Object
deserializeWithType(JsonParser p, DeserializationContext ctxt, TypeDeserializer
Deserializer to use for handling type information
typeDeserializer
)

Overrides com.fasterxml.jackson.databind.deser.std.CollectionDeserializer.deserializeWithType.

Base implementation that does not assume specific type inclusion mechanism.

protected ArrayBlockingQueueDeserializer
withResolved(JsonDeserializer<?> dd, JsonDeserializer<?> vd, TypeDeserializer vtd, NullValueProvider nuller, Boolean unwrapSingle)

Overrides com.fasterxml.jackson.databind.deser.std.CollectionDeserializer.withResolved.

Fluent-factory method call to construct contextual instance.

Inherited from com.fasterxml.jackson.databind.deser.std.CollectionDeserializer:
_deserializeFromString_deserializeWithObjectIdcreateContextualdeserializedeserializegetContentDeserializergetValueInstantiatorhandleNonArrayisCachablelogicalType

Field Detail

serialVersionUIDback to summary
private static final long serialVersionUID

Hides com.fasterxml.jackson.databind.deser.std.CollectionDeserializer.serialVersionUID.

Constructor Detail

ArrayBlockingQueueDeserializerback to summary
public ArrayBlockingQueueDeserializer(JavaType containerType, JsonDeserializer<Object> valueDeser, TypeDeserializer valueTypeDeser, ValueInstantiator valueInstantiator)
ArrayBlockingQueueDeserializerback to summary
protected ArrayBlockingQueueDeserializer(JavaType containerType, JsonDeserializer<Object> valueDeser, TypeDeserializer valueTypeDeser, ValueInstantiator valueInstantiator, JsonDeserializer<Object> delegateDeser, NullValueProvider nuller, Boolean unwrapSingle)

Constructor used when creating contextualized instances.

ArrayBlockingQueueDeserializerback to summary
protected ArrayBlockingQueueDeserializer(ArrayBlockingQueueDeserializer src)

Copy-constructor that can be used by sub-classes to allow copy-on-write styling copying of settings of an existing instance.

Method Detail

_deserializeFromArrayback to summary
protected Collection<Object> _deserializeFromArray(JsonParser p, DeserializationContext ctxt, Collection<Object> result0) throws IOException

Overrides com.fasterxml.jackson.databind.deser.std.CollectionDeserializer._deserializeFromArray.

Annotations
@Override
createDefaultInstanceback to summary
protected Collection<Object> createDefaultInstance(DeserializationContext ctxt) throws IOException

Overrides com.fasterxml.jackson.databind.deser.std.CollectionDeserializer.createDefaultInstance.

Annotations
@Override
deserializeWithTypeback to summary
public Object deserializeWithType(JsonParser p, DeserializationContext ctxt, TypeDeserializer typeDeserializer) throws IOException

Overrides com.fasterxml.jackson.databind.deser.std.CollectionDeserializer.deserializeWithType.

Doc from com.fasterxml.jackson.databind.deser.std.StdDeserializer.deserializeWithType.

Base implementation that does not assume specific type inclusion mechanism. Sub-classes are expected to override this method if they are to handle type information.

Parameters
typeDeserializer:TypeDeserializer

Doc from com.fasterxml.jackson.databind.JsonDeserializer.deserializeWithType.

Deserializer to use for handling type information

Annotations
@Override
withResolvedback to summary
protected ArrayBlockingQueueDeserializer withResolved(JsonDeserializer<?> dd, JsonDeserializer<?> vd, TypeDeserializer vtd, NullValueProvider nuller, Boolean unwrapSingle)

Overrides com.fasterxml.jackson.databind.deser.std.CollectionDeserializer.withResolved.

Fluent-factory method call to construct contextual instance.

Annotations
@Override
@SuppressWarnings:unchecked