All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.fasterxml.jackson.databind.deser.impl.ReadableObjectId Maven / Gradle / Ivy

Go to download

Ehcache is an open source, standards-based cache used to boost performance, offload the database and simplify scalability. Ehcache is robust, proven and full-featured and this has made it the most widely-used Java-based cache.

There is a newer version: 2.10.9.2
Show newest version
package com.fasterxml.jackson.databind.deser.impl;

import java.io.IOException;

/**
 * Simple value container for containing information about single
 * Object Id during deserialization.
 */
public class ReadableObjectId
{
    public final Object id;
    
    public Object item;
    
    public ReadableObjectId(Object id)
    {
        this.id = id;
    }

    /**
     * Method called to assign actual POJO to which ObjectId refers to:
     * will also handle referring properties, if any, by assigning POJO.
     */
    public void bindItem(Object ob) throws IOException
    {
        if (item != null) {
            throw new IllegalStateException("Already had POJO for id ("+id.getClass().getName()+") ["+id+"]");
        }
        item = ob;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy