public final class ObjectBinder
extends java.lang.Object
| Constructor and Description |
|---|
ObjectBinder()
Creates a new ObjectBinder with the default parameters.
|
ObjectBinder(boolean bypassTransient,
boolean bypassFinal)
Creates a new ObjectBinder with advanced parameters.
|
| Modifier and Type | Method and Description |
|---|---|
Config |
bind(java.lang.Class<?> clazz)
Creates a new config bound to the static fields of a class.
|
Config |
bind(java.lang.Class<?> clazz,
ConfigFormat<?> configFormat)
Creates a new config bound to the static fields of a class.
|
Config |
bind(java.lang.Object object)
Creates a new config bound to the fields of a object.
|
Config |
bind(java.lang.Object object,
ConfigFormat<?> configFormat)
Creates a new config bound to the fields of a object.
|
public ObjectBinder(boolean bypassTransient,
boolean bypassFinal)
bypassTransient - true to use (parse or write) a field even if it's transientbypassFinal - true to write a field even if it's finalpublic ObjectBinder()
new ObjectBinder(false, true).ObjectBinder(boolean, boolean)public Config bind(java.lang.Class<?> clazz)
clazz - the class to bindpublic Config bind(java.lang.Class<?> clazz, ConfigFormat<?> configFormat)
clazz - the class to bindconfigFormat - the Config formatpublic Config bind(java.lang.Object object)
object - the class to bindpublic Config bind(java.lang.Object object, ConfigFormat<?> configFormat)
object - the class to bindconfigFormat - the Config format