org.codehaus.jackson.map.ser.impl.UnwrappingBeanPropertyWriter Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of ehcache Show documentation
Show all versions of ehcache Show documentation
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.
package org.codehaus.jackson.map.ser.impl;
import org.codehaus.jackson.JsonGenerator;
import org.codehaus.jackson.map.JsonMappingException;
import org.codehaus.jackson.map.JsonSerializer;
import org.codehaus.jackson.map.SerializerProvider;
import org.codehaus.jackson.map.ser.*;
import org.codehaus.jackson.type.JavaType;
/**
* Variant of {@link BeanPropertyWriter} which will handle unwrapping
* of JSON Object (including of properties of Object within surrounding
* JSON object, and not as sub-object).
*
* @since 1.9
*/
public class UnwrappingBeanPropertyWriter
extends BeanPropertyWriter
{
public UnwrappingBeanPropertyWriter(BeanPropertyWriter base) {
super(base);
}
public UnwrappingBeanPropertyWriter(BeanPropertyWriter base, JsonSerializer