|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.springframework.integration.context.IntegrationObjectSupport org.springframework.integration.transformer.AbstractTransformer org.springframework.integration.transformer.AbstractPayloadTransformer<java.lang.String,T> org.springframework.integration.json.JsonToObjectTransformer<T>
public class JsonToObjectTransformer<T>
Transformer implementation that converts a JSON string payload into an instance of the provided target Class.
Field Summary |
---|
Fields inherited from class org.springframework.integration.context.IntegrationObjectSupport |
---|
logger |
Constructor Summary | |
---|---|
JsonToObjectTransformer(java.lang.Class<T> targetClass)
|
|
JsonToObjectTransformer(java.lang.Class<T> targetClass,
org.codehaus.jackson.map.ObjectMapper objectMapper)
|
Method Summary | |
---|---|
protected T |
transformPayload(java.lang.String payload)
|
Methods inherited from class org.springframework.integration.transformer.AbstractPayloadTransformer |
---|
doTransform |
Methods inherited from class org.springframework.integration.transformer.AbstractTransformer |
---|
transform |
Methods inherited from class org.springframework.integration.context.IntegrationObjectSupport |
---|
afterPropertiesSet, getBeanFactory, getComponentName, getComponentType, getConversionService, getTaskScheduler, onInit, setBeanFactory, setBeanName, setComponentName, setConversionService, setTaskScheduler, toString |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public JsonToObjectTransformer(java.lang.Class<T> targetClass)
public JsonToObjectTransformer(java.lang.Class<T> targetClass, org.codehaus.jackson.map.ObjectMapper objectMapper)
Method Detail |
---|
protected T transformPayload(java.lang.String payload) throws java.lang.Exception
transformPayload
in class AbstractPayloadTransformer<java.lang.String,T>
java.lang.Exception
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |