java.lang.Object
io.ebeaninternal.server.json.DJsonContext
- All Implemented Interfaces:
JsonContext,SpiJsonContext
Default implementation of JsonContext.
-
Constructor Summary
ConstructorsConstructorDescriptionDJsonContext(SpiEbeanServer server, com.fasterxml.jackson.core.JsonFactory jsonFactory, TypeManager typeManager) -
Method Summary
Modifier and TypeMethodDescription<T> DJsonBeanReader<T> createBeanReader(BeanType<T> beanType, com.fasterxml.jackson.core.JsonParser parser, JsonReadOptions options) <T> DJsonBeanReader<T> createBeanReader(Class<T> cls, com.fasterxml.jackson.core.JsonParser parser, JsonReadOptions options) com.fasterxml.jackson.core.JsonGeneratorcreateGenerator(Writer writer) createJsonRead(BeanType<?> beanType, String json) Create a Json Reader for reading the JSON content.createJsonWriter(com.fasterxml.jackson.core.JsonGenerator gen, JsonWriteOptions options) Create a Json Writer for writing beans as JSON.createJsonWriter(Writer writer) Create a Json Writer for writing beans as JSON supplying a writer.com.fasterxml.jackson.core.JsonParsercreateParser(Reader reader) booleanisSupportedType(Type genericType) <T> T<T> TtoBean(Class<T> cls, com.fasterxml.jackson.core.JsonParser parser, JsonReadOptions options) <T> T<T> TtoBean(Class<T> cls, Reader jsonReader, JsonReadOptions options) <T> T<T> TtoBean(Class<T> cls, String json, JsonReadOptions options) <T> voidtoBean(T target, com.fasterxml.jackson.core.JsonParser parser) <T> voidtoBean(T target, com.fasterxml.jackson.core.JsonParser parser, JsonReadOptions options) <T> void<T> voidtoBean(T target, Reader jsonReader, JsonReadOptions options) <T> void<T> voidtoBean(T target, String json, JsonReadOptions options) voidvoidvoidtoJson(Object o, com.fasterxml.jackson.core.JsonGenerator generator, JsonWriteOptions options) toJson(Object o, JsonWriteOptions options) voidvoidvoidtoJson(Object o, Writer writer, JsonWriteOptions options) toJsonPretty(Object value) <T> List<T> <T> List<T> toList(Class<T> cls, com.fasterxml.jackson.core.JsonParser src, JsonReadOptions options) <T> List<T> <T> List<T> toList(Class<T> cls, Reader jsonReader, JsonReadOptions options) <T> List<T> <T> List<T> toList(Class<T> cls, String json, JsonReadOptions options) voidwriteScalar(com.fasterxml.jackson.core.JsonGenerator generator, Object scalarValue)
-
Constructor Details
-
DJsonContext
public DJsonContext(SpiEbeanServer server, com.fasterxml.jackson.core.JsonFactory jsonFactory, TypeManager typeManager)
-
-
Method Details
-
writeScalar
public void writeScalar(com.fasterxml.jackson.core.JsonGenerator generator, Object scalarValue) throws IOException - Specified by:
writeScalarin interfaceJsonContext- Throws:
IOException
-
isSupportedType
- Specified by:
isSupportedTypein interfaceJsonContext
-
createGenerator
public com.fasterxml.jackson.core.JsonGenerator createGenerator(Writer writer) throws JsonIOException - Specified by:
createGeneratorin interfaceJsonContext- Throws:
JsonIOException
-
createParser
- Specified by:
createParserin interfaceJsonContext- Throws:
JsonIOException
-
toBean
- Specified by:
toBeanin interfaceJsonContext- Throws:
JsonIOException
-
toBean
- Specified by:
toBeanin interfaceJsonContext- Throws:
JsonIOException
-
toBean
- Specified by:
toBeanin interfaceJsonContext- Throws:
JsonIOException
-
toBean
public <T> T toBean(Class<T> cls, Reader jsonReader, JsonReadOptions options) throws JsonIOException - Specified by:
toBeanin interfaceJsonContext- Throws:
JsonIOException
-
toBean
public <T> T toBean(Class<T> cls, com.fasterxml.jackson.core.JsonParser parser) throws JsonIOException - Specified by:
toBeanin interfaceJsonContext- Throws:
JsonIOException
-
toBean
public <T> T toBean(Class<T> cls, com.fasterxml.jackson.core.JsonParser parser, JsonReadOptions options) throws JsonIOException - Specified by:
toBeanin interfaceJsonContext- Throws:
JsonIOException
-
toBean
- Specified by:
toBeanin interfaceJsonContext- Throws:
JsonIOException
-
toBean
- Specified by:
toBeanin interfaceJsonContext- Throws:
JsonIOException
-
toBean
- Specified by:
toBeanin interfaceJsonContext- Throws:
JsonIOException
-
toBean
- Specified by:
toBeanin interfaceJsonContext- Throws:
JsonIOException
-
toBean
public <T> void toBean(T target, com.fasterxml.jackson.core.JsonParser parser) throws JsonIOException - Specified by:
toBeanin interfaceJsonContext- Throws:
JsonIOException
-
toBean
public <T> void toBean(T target, com.fasterxml.jackson.core.JsonParser parser, JsonReadOptions options) throws JsonIOException - Specified by:
toBeanin interfaceJsonContext- Throws:
JsonIOException
-
createBeanReader
public <T> DJsonBeanReader<T> createBeanReader(Class<T> cls, com.fasterxml.jackson.core.JsonParser parser, JsonReadOptions options) throws JsonIOException - Specified by:
createBeanReaderin interfaceJsonContext- Throws:
JsonIOException
-
createBeanReader
public <T> DJsonBeanReader<T> createBeanReader(BeanType<T> beanType, com.fasterxml.jackson.core.JsonParser parser, JsonReadOptions options) throws JsonIOException - Specified by:
createBeanReaderin interfaceJsonContext- Throws:
JsonIOException
-
toList
- Specified by:
toListin interfaceJsonContext- Throws:
JsonIOException
-
toList
public <T> List<T> toList(Class<T> cls, String json, JsonReadOptions options) throws JsonIOException - Specified by:
toListin interfaceJsonContext- Throws:
JsonIOException
-
toList
- Specified by:
toListin interfaceJsonContext- Throws:
JsonIOException
-
toList
public <T> List<T> toList(Class<T> cls, Reader jsonReader, JsonReadOptions options) throws JsonIOException - Specified by:
toListin interfaceJsonContext- Throws:
JsonIOException
-
toList
public <T> List<T> toList(Class<T> cls, com.fasterxml.jackson.core.JsonParser src) throws JsonIOException - Specified by:
toListin interfaceJsonContext- Throws:
JsonIOException
-
toList
public <T> List<T> toList(Class<T> cls, com.fasterxml.jackson.core.JsonParser src, JsonReadOptions options) throws JsonIOException - Specified by:
toListin interfaceJsonContext- Throws:
JsonIOException
-
toObject
- Specified by:
toObjectin interfaceJsonContext- Throws:
JsonIOException
-
toObject
- Specified by:
toObjectin interfaceJsonContext- Throws:
JsonIOException
-
toObject
public Object toObject(Type genericType, com.fasterxml.jackson.core.JsonParser jsonParser) throws JsonIOException - Specified by:
toObjectin interfaceJsonContext- Throws:
JsonIOException
-
toJson
public void toJson(Object value, com.fasterxml.jackson.core.JsonGenerator generator) throws JsonIOException - Specified by:
toJsonin interfaceJsonContext- Throws:
JsonIOException
-
toJson
public void toJson(Object value, com.fasterxml.jackson.core.JsonGenerator generator, FetchPath fetchPath) throws JsonIOException - Specified by:
toJsonin interfaceJsonContext- Throws:
JsonIOException
-
toJson
public void toJson(Object o, com.fasterxml.jackson.core.JsonGenerator generator, JsonWriteOptions options) throws JsonIOException - Specified by:
toJsonin interfaceJsonContext- Throws:
JsonIOException
-
toJson
- Specified by:
toJsonin interfaceJsonContext- Throws:
JsonIOException
-
toJson
- Specified by:
toJsonin interfaceJsonContext- Throws:
JsonIOException
-
toJson
- Specified by:
toJsonin interfaceJsonContext- Throws:
JsonIOException
-
toJson
- Specified by:
toJsonin interfaceJsonContext- Throws:
JsonIOException
-
toJsonPretty
- Specified by:
toJsonPrettyin interfaceJsonContext- Throws:
JsonIOException
-
toJson
- Specified by:
toJsonin interfaceJsonContext- Throws:
JsonIOException
-
toJson
- Specified by:
toJsonin interfaceJsonContext- Throws:
JsonIOException
-
createJsonRead
Description copied from interface:SpiJsonContextCreate a Json Reader for reading the JSON content.- Specified by:
createJsonReadin interfaceSpiJsonContext
-
createJsonWriter
Description copied from interface:SpiJsonContextCreate a Json Writer for writing beans as JSON supplying a writer.- Specified by:
createJsonWriterin interfaceSpiJsonContext
-
createJsonWriter
public SpiJsonWriter createJsonWriter(com.fasterxml.jackson.core.JsonGenerator gen, JsonWriteOptions options) Description copied from interface:SpiJsonContextCreate a Json Writer for writing beans as JSON.- Specified by:
createJsonWriterin interfaceSpiJsonContext
-