public interface JsonBeanReader<T>
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).
Modifier and Type | Method and Description |
---|---|
JsonBeanReader<T> |
forJson(com.fasterxml.jackson.core.JsonParser moreJson,
boolean resetContext)
Create a new reader taking the context from the existing one but using a new JsonParser.
|
PersistenceContext |
getPersistenceContext()
Return the persistence context if one is being used.
|
void |
persistenceContextPut(Object beanId,
T currentBean)
Add a bean explicitly to the persistence context.
|
T |
read()
Read the JSON returning a bean.
|
JsonBeanReader<T> forJson(com.fasterxml.jackson.core.JsonParser moreJson, boolean resetContext)
void persistenceContextPut(Object beanId, T currentBean)
PersistenceContext getPersistenceContext()
Copyright © 2019. All rights reserved.