Example usage for com.fasterxml.jackson.databind.deser.impl BeanPropertyMap assignIndexes

List of usage examples for com.fasterxml.jackson.databind.deser.impl BeanPropertyMap assignIndexes

Introduction

In this page you can find the example usage for com.fasterxml.jackson.databind.deser.impl BeanPropertyMap assignIndexes.

Prototype

public BeanPropertyMap assignIndexes() 

Source Link

Usage

From source file:com.github.shyiko.jackson.module.advice.AdvisedBeanDeserializerBuilder.java

@Override
public JsonDeserializer<?> build() {
    Collection<SettableBeanProperty> props = _properties.values();
    BeanPropertyMap propertyMap = new BeanPropertyMap(props);
    propertyMap.assignIndexes();
    boolean anyViews = !_defaultViewInclusion;
    if (!anyViews) {
        for (SettableBeanProperty prop : props) {
            if (prop.hasViews()) {
                anyViews = true;/*from   w  w w  . jav  a  2  s  .  c o m*/
                break;
            }
        }
    }
    if (_objectIdReader != null) {
        ObjectIdValueProperty prop = new ObjectIdValueProperty(_objectIdReader, PropertyMetadata.STD_REQUIRED);
        propertyMap = propertyMap.withProperty(prop);
    }
    return new AdvisedBeanDeserializer(this, _beanDesc, propertyMap, _backRefProperties, _ignorableProps,
            _ignoreAllUnknown, anyViews, beanDeserializerAdvice);
}