Interface JacksonJavaTypeMapper

All Superinterfaces:
ClassMapper
All Known Implementing Classes:
DefaultJacksonJavaTypeMapper

public interface JacksonJavaTypeMapper extends ClassMapper
Strategy for setting metadata on messages such that one can create the class that needs to be instantiated when receiving a message.
Since:
4.0
  • Method Details

    • fromJavaType

      void fromJavaType(tools.jackson.databind.JavaType javaType, MessageProperties properties)
      Set the message properties according to the type.
      Parameters:
      javaType - the type.
      properties - the properties.
    • toJavaType

      tools.jackson.databind.JavaType toJavaType(MessageProperties properties)
      Determine the type from the message properties.
      Parameters:
      properties - the properties.
      Returns:
      the type.
    • getTypePrecedence

      Get the type precedence.
      Returns:
      the precedence.
    • addTrustedPackages

      default void addTrustedPackages(String... packages)
      Add trusted packages.
      Parameters:
      packages - the packages.
    • getInferredType

      @Nullable tools.jackson.databind.JavaType getInferredType(MessageProperties properties)
      Return the inferred type, if the type precedence is inferred and the header is present.
      Parameters:
      properties - the message properties.
      Returns:
      the type.