public class JsonCodecFactory extends Object
| Constructor and Description |
|---|
JsonCodecFactory() |
JsonCodecFactory(javax.inject.Provider<com.fasterxml.jackson.databind.ObjectMapper> objectMapperProvider) |
JsonCodecFactory(javax.inject.Provider<com.fasterxml.jackson.databind.ObjectMapper> objectMapperProvider,
boolean prettyPrint) |
| Modifier and Type | Method and Description |
|---|---|
<T> JsonCodec<T> |
jsonCodec(Class<T> type) |
<T> JsonCodec<T> |
jsonCodec(Type type) |
<T> JsonCodec<T> |
jsonCodec(com.google.common.reflect.TypeToken<T> type) |
<T> JsonCodec<List<T>> |
listJsonCodec(Class<T> type) |
<T> JsonCodec<List<T>> |
listJsonCodec(JsonCodec<T> type) |
<K,V> JsonCodec<Map<K,V>> |
mapJsonCodec(Class<K> keyType,
Class<V> valueType) |
<K,V> JsonCodec<Map<K,V>> |
mapJsonCodec(Class<K> keyType,
JsonCodec<V> valueType) |
JsonCodecFactory |
prettyPrint() |
public JsonCodecFactory()
@Inject public JsonCodecFactory(javax.inject.Provider<com.fasterxml.jackson.databind.ObjectMapper> objectMapperProvider)
public JsonCodecFactory(javax.inject.Provider<com.fasterxml.jackson.databind.ObjectMapper> objectMapperProvider,
boolean prettyPrint)
public JsonCodecFactory prettyPrint()
public <T> JsonCodec<T> jsonCodec(com.google.common.reflect.TypeToken<T> type)
Copyright © 2010-2015 Airlift. All Rights Reserved.