com.signalfx.shaded.fasterxml.jackson.jr.ob.impl.BeanWriter Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of signalfx-codahale Show documentation
Show all versions of signalfx-codahale Show documentation
Dropwizard Codahale metrics plugin for signalfx
The newest version!
package com.signalfx.shaded.fasterxml.jackson.jr.ob.impl;
import java.io.IOException;
import com.signalfx.shaded.fasterxml.jackson.core.JsonGenerator;
import com.signalfx.shaded.fasterxml.jackson.jr.ob.api.ValueWriter;
public class BeanWriter
implements ValueWriter
{
protected final BeanPropertyWriter[] _properties;
protected final Class> _valueType;
public BeanWriter(Class> type, BeanPropertyWriter[] props) {
_valueType = type;
_properties = props;
}
@Override
public void writeValue(JSONWriter context, JsonGenerator g, Object value)
throws IOException
{
context.writeBeanValue(_properties, value);
}
@Override
public Class> valueType() {
return _valueType;
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy