public class ConfigCodec extends AbstractJsonCodec<Config>
Config objects.| Modifier and Type | Field and Description |
|---|---|
static String |
ROOT |
static String |
ROOTS |
log, mapper, NO_DECODING_SUP, root, roots| Constructor and Description |
|---|
ConfigCodec()
Constructs the codec with appropriate root values.
|
| Modifier and Type | Method and Description |
|---|---|
Config |
decode(com.fasterxml.jackson.databind.node.ObjectNode node)
Decodes the JSON into a typed POJO.
|
com.fasterxml.jackson.databind.node.ObjectNode |
encode(Config config)
Encodes the given POJO to its JSON representation.
|
arrayNode, decode, decodeList, encode, encodeList, encodeList, fromEnums, isMissingContent, longVal, objectNode, read, root, roots, toEnums, writepublic static final String ROOT
public static final String ROOTS
public ConfigCodec()
public com.fasterxml.jackson.databind.node.ObjectNode encode(Config config)
JsonCodecconfig - POJO to encodeCopyright © 2014. All Rights Reserved.