mirror of
https://github.com/ebean-orm/ebean.git
synced 2024-04-21 10:51:47 +00:00
33 lines
847 B
Java
33 lines
847 B
Java
package io.ebeaninternal.api;
|
|
|
|
import com.fasterxml.jackson.core.JsonGenerator;
|
|
import io.ebean.plugin.BeanType;
|
|
import io.ebean.text.json.JsonContext;
|
|
import io.ebean.text.json.JsonWriteOptions;
|
|
import io.ebeaninternal.api.json.SpiJsonReader;
|
|
import io.ebeaninternal.api.json.SpiJsonWriter;
|
|
|
|
import java.io.Writer;
|
|
|
|
/**
|
|
* Extended Json Context for internal server use.
|
|
*/
|
|
public interface SpiJsonContext extends JsonContext {
|
|
|
|
/**
|
|
* Create a Json Writer for writing beans as JSON.
|
|
*/
|
|
SpiJsonWriter createJsonWriter(JsonGenerator gen, JsonWriteOptions options);
|
|
|
|
/**
|
|
* Create a Json Writer for writing beans as JSON supplying a writer.
|
|
*/
|
|
SpiJsonWriter createJsonWriter(Writer writer);
|
|
|
|
/**
|
|
* Create a Json Reader for reading the JSON content.
|
|
*/
|
|
SpiJsonReader createJsonRead(BeanType<?> beanType, String json);
|
|
|
|
}
|