| Package | Description |
|---|---|
| com.dslplatform.json |
| Modifier and Type | Field and Description |
|---|---|
protected List<DslJson.ConverterFactory<JsonReader.BindObject>> |
DslJson.binderFactories |
| Modifier and Type | Method and Description |
|---|---|
<T> JsonReader.BindObject<T> |
DslJson.tryFindBinder(Class<T> manifest)
Try to find registered binder for provided type.
|
JsonReader.BindObject<?> |
DslJson.tryFindBinder(Type manifest)
Try to find registered binder for provided type.
|
| Modifier and Type | Method and Description |
|---|---|
<T> T |
JsonReader.next(JsonReader.BindObject<T> binder,
T instance)
Will advance to next token and bind the JSON to provided instance
|
<T,S extends T> |
DslJson.registerBinder(Class<T> manifest,
JsonReader.BindObject<S> binder)
Register custom binder for specific type (JSON -> instance conversion).
|
void |
DslJson.registerBinder(Type manifest,
JsonReader.BindObject<?> binder)
Register custom binder for specific type (JSON -> instance conversion).
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
DslJson.registerBinderFactory(DslJson.ConverterFactory<? extends JsonReader.BindObject> factory) |
DslJson.Settings<TContext> |
DslJson.Settings.resolveBinder(DslJson.ConverterFactory<? extends JsonReader.BindObject> binder)
DslJson will iterate over converter factories when requested type is unknown.
|
Copyright © 2021. All rights reserved.