Example usage for com.fasterxml.jackson.databind.ser.std CollectionSerializer CollectionSerializer

List of usage examples for com.fasterxml.jackson.databind.ser.std CollectionSerializer CollectionSerializer

Introduction

In this page you can find the example usage for com.fasterxml.jackson.databind.ser.std CollectionSerializer CollectionSerializer.

Prototype

public CollectionSerializer(CollectionSerializer paramCollectionSerializer, BeanProperty paramBeanProperty,
            TypeSerializer paramTypeSerializer, JsonSerializer<?> paramJsonSerializer) 

Source Link

Usage

From source file:org.emfjson.jackson.databind.ser.EMFSerializers.java

@Override
public JsonSerializer<?> findCollectionSerializer(SerializationConfig config, CollectionType type,
        BeanDescription beanDesc, TypeSerializer elementTypeSerializer,
        JsonSerializer<Object> elementValueSerializer) {
    if (type.getContentType().isReferenceType()) {
        return new CollectionSerializer(type.getContentType(), false, null,
                (JsonSerializer) _referenceSerializer);
    }//from  ww w  .jav  a  2s  .c o m
    return super.findCollectionSerializer(config, type, beanDesc, elementTypeSerializer,
            elementValueSerializer);
}