public class JacksonTranslationService extends Object implements TranslationService, InitializingBean
TranslationService contract.| Constructor and Description |
|---|
JacksonTranslationService() |
| Modifier and Type | Method and Description |
|---|---|
void |
afterPropertiesSet() |
CouchbaseStorable |
decode(Object source,
CouchbaseStorable target)
Decode a JSON string into the
CouchbaseStorable structure. |
Object |
encode(CouchbaseStorable source)
Encode a
CouchbaseStorable to a JSON string. |
void |
setObjectMapper(com.fasterxml.jackson.databind.ObjectMapper objectMapper) |
public final Object encode(CouchbaseStorable source)
CouchbaseStorable to a JSON string.encode in interface TranslationServicesource - the source document to encode.public final CouchbaseStorable decode(Object source, CouchbaseStorable target)
CouchbaseStorable structure.decode in interface TranslationServicesource - the source formatted document.target - the target of the populated data.public void setObjectMapper(com.fasterxml.jackson.databind.ObjectMapper objectMapper)
public void afterPropertiesSet()
afterPropertiesSet in interface InitializingBeanCopyright © 2011-2015–2016 Pivotal Software, Inc.. All rights reserved.