public class JsonToObjectTransformer extends AbstractTransformer implements BeanClassLoaderAware
JsonObjectMapper
,
JacksonJsonObjectMapperProvider
logger
Constructor and Description |
---|
JsonToObjectTransformer() |
JsonToObjectTransformer(Class<?> targetClass) |
JsonToObjectTransformer(Class<?> targetClass,
JsonObjectMapper<?,?> jsonObjectMapper) |
JsonToObjectTransformer(JsonObjectMapper<?,?> jsonObjectMapper) |
Modifier and Type | Method and Description |
---|---|
protected Object |
doTransform(Message<?> message)
Subclasses must implement this method to provide the transformation
logic.
|
String |
getComponentType()
Subclasses may implement this method to provide component type information.
|
void |
setBeanClassLoader(ClassLoader classLoader) |
transform
afterPropertiesSet, getApplicationContextId, getBeanFactory, getComponentName, getConversionService, getIntegrationProperties, getIntegrationProperty, getMessageBuilderFactory, getTaskScheduler, onInit, setApplicationContext, setBeanFactory, setBeanName, setComponentName, setConversionService, setMessageBuilderFactory, setTaskScheduler, toString
public JsonToObjectTransformer()
public JsonToObjectTransformer(Class<?> targetClass)
public JsonToObjectTransformer(JsonObjectMapper<?,?> jsonObjectMapper)
public JsonToObjectTransformer(Class<?> targetClass, JsonObjectMapper<?,?> jsonObjectMapper)
public void setBeanClassLoader(ClassLoader classLoader)
setBeanClassLoader
in interface BeanClassLoaderAware
public String getComponentType()
IntegrationObjectSupport
getComponentType
in interface NamedComponent
getComponentType
in class IntegrationObjectSupport
protected Object doTransform(Message<?> message) throws Exception
AbstractTransformer
doTransform
in class AbstractTransformer
message
- The message.Exception
- Any exception.