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

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

Introduction

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

Prototype

public BeanPropertyMap(Collection<SettableBeanProperty> paramCollection) 

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();/* w w  w  .java  2s .c o  m*/
    boolean anyViews = !_defaultViewInclusion;
    if (!anyViews) {
        for (SettableBeanProperty prop : props) {
            if (prop.hasViews()) {
                anyViews = true;
                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);
}