-
public interface JsonBeanReader<T>Provides a JSON reader that can hold a persistence context and load context while reading JSON.This provides a mechanism such that an object loaded from JSON can have unique instances by using a persistence context and also support further lazy loading (via a load context).
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description JsonBeanReader<T>forJson(com.fasterxml.jackson.core.JsonParser moreJson)Create a new reader taking the context from the existing one but using a new JsonParser.PersistenceContextgetPersistenceContext()Return the persistence context if one is being used.voidpersistenceContextPut(Object beanId, T currentBean)Add a bean explicitly to the persistence context.default Tread()Read the JSON returning a bean.Tread(T target)Read the JSON into given bean.
-
-
-
Method Detail
-
read
default T read()
Read the JSON returning a bean.
-
forJson
JsonBeanReader<T> forJson(com.fasterxml.jackson.core.JsonParser moreJson)
Create a new reader taking the context from the existing one but using a new JsonParser.
-
persistenceContextPut
void persistenceContextPut(Object beanId, T currentBean)
Add a bean explicitly to the persistence context.
-
getPersistenceContext
PersistenceContext getPersistenceContext()
Return the persistence context if one is being used.
-
-