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.
|
com.fasterxml.jackson.databind.JavaType |
getInferredType(MessageProperties properties)
Return the inferred type, if the type precedence is inferred and the
header is present.
|
Jackson2JavaTypeMapper.TypePrecedence |
getTypePrecedence()
Get the type precedence.
|
com.fasterxml.jackson.databind.JavaType |
toJavaType(MessageProperties properties)
Determine the type from the message properties.
|
fromClass, toClassvoid 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.@Nullable com.fasterxml.jackson.databind.JavaType getInferredType(MessageProperties properties)
properties - the message properties.