public static interface JsonReader.ClassFactory
Modifier and Type | Method and Description |
---|---|
default void |
gatherRemainingValues(ReaderContext context,
JsonObject jObj,
List<Object> arguments,
Set<String> excludedFields) |
default boolean |
isObjectFinal() |
default Object |
newInstance(Class<?> c,
JsonObject jObj)
Implement this method to return a new instance of the passed in Class.
|
default Object |
newInstance(Class<?> c,
JsonObject jObj,
ReaderContext context)
Implement this method to return a new instance of the passed in Class.
|
default Object newInstance(Class<?> c, JsonObject jObj, ReaderContext context)
c
- Class of the object that needs to be createdjObj
- JsonObject (if primitive type do jObj.getPrimitiveValue();context
- ReaderContext for creating objects an getting read optionsdefault Object newInstance(Class<?> c, JsonObject jObj)
c
- Class of the object that needs to be createdjObj
- JsonObject (if primitive type do jObj.getPrimitiveValue();default boolean isObjectFinal()
default void gatherRemainingValues(ReaderContext context, JsonObject jObj, List<Object> arguments, Set<String> excludedFields)
Copyright © 2023. All rights reserved.