public interface Jackson2JavaTypeMapper extends ClassMapper
Modifier and Type | Interface and Description |
---|---|
static class |
Jackson2JavaTypeMapper.TypePrecedence
The precedence for type conversion - inferred from the method parameter or message
headers.
|
Modifier and Type | Method and Description |
---|---|
default void |
addTrustedPackages(String... packages)
Add trusted packages.
|
void |
fromJavaType(com.fasterxml.jackson.databind.JavaType javaType,
MessageProperties properties)
Set the message properties according to the type.
|
Jackson2JavaTypeMapper.TypePrecedence |
getTypePrecedence()
Get the type precedence.
|
com.fasterxml.jackson.databind.JavaType |
toJavaType(MessageProperties properties)
Determine the type from the message properties.
|
fromClass, toClass
void fromJavaType(com.fasterxml.jackson.databind.JavaType javaType, MessageProperties properties)
javaType
- the type.properties
- the properties.com.fasterxml.jackson.databind.JavaType toJavaType(MessageProperties properties)
properties
- the properties.Jackson2JavaTypeMapper.TypePrecedence getTypePrecedence()
default void addTrustedPackages(String... packages)
packages
- the packages.