com.fasterxml.jackson.databind.introspect.BasicBeanDescription

Here are the examples of the java api class com.fasterxml.jackson.databind.introspect.BasicBeanDescription taken from open source projects.

1. JacksonObjectIdUpdater#getId()

Project: jongo
File: JacksonObjectIdUpdater.java
public Object getId(Object pojo) {
    BasicBeanDescription beanDescription = beanDescription(pojo.getClass());
    for (BeanPropertyDefinition def : beanDescription.findProperties()) {
        if (isIdProperty(def)) {
            AnnotatedMember accessor = def.getAccessor();
            accessor.fixAccess();
            Object id = accessor.getValue(pojo);
            if (id instanceof String && isObjectId(def)) {
                return new ObjectId(id.toString());
            } else {
                return id;
            }
        }
    }
    return null;
}