Interface Jackson2JavaTypeMapper

All Superinterfaces:
ClassMapper
All Known Implementing Classes:
DefaultJackson2JavaTypeMapper

@Deprecated(forRemoval=true, since="4.0") public interface Jackson2JavaTypeMapper extends ClassMapper
Deprecated, for removal: This API element is subject to removal in a future version.
since 4.0 in favor of JacksonJavaTypeMapper for Jackson 3.
Strategy for setting metadata on messages such that one can create the class that needs to be instantiated when receiving a message.
  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Interface
    Description
    static enum 
    Deprecated, for removal: This API element is subject to removal in a future version.
    The precedence for type conversion - inferred from the method parameter or message headers.
  • Method Summary

    Modifier and Type
    Method
    Description
    default void
    Deprecated, for removal: This API element is subject to removal in a future version.
    Add trusted packages.
    void
    fromJavaType(com.fasterxml.jackson.databind.JavaType javaType, MessageProperties properties)
    Deprecated, for removal: This API element is subject to removal in a future version.
    Set the message properties according to the type.
    @Nullable com.fasterxml.jackson.databind.JavaType
    Deprecated, for removal: This API element is subject to removal in a future version.
    Return the inferred type, if the type precedence is inferred and the header is present.
    Deprecated, for removal: This API element is subject to removal in a future version.
    Get the type precedence.
    com.fasterxml.jackson.databind.JavaType
    Deprecated, for removal: This API element is subject to removal in a future version.
    Determine the type from the message properties.

    Methods inherited from interface org.springframework.amqp.support.converter.ClassMapper

    fromClass, toClass
  • Method Details

    • fromJavaType

      void fromJavaType(com.fasterxml.jackson.databind.JavaType javaType, MessageProperties properties)
      Deprecated, for removal: This API element is subject to removal in a future version.
      Set the message properties according to the type.
      Parameters:
      javaType - the type.
      properties - the properties.
    • toJavaType

      com.fasterxml.jackson.databind.JavaType toJavaType(MessageProperties properties)
      Deprecated, for removal: This API element is subject to removal in a future version.
      Determine the type from the message properties.
      Parameters:
      properties - the properties.
      Returns:
      the type.
    • getTypePrecedence

      Deprecated, for removal: This API element is subject to removal in a future version.
      Get the type precedence.
      Returns:
      the precedence.
      Since:
      1.6
    • addTrustedPackages

      default void addTrustedPackages(String... packages)
      Deprecated, for removal: This API element is subject to removal in a future version.
      Add trusted packages.
      Parameters:
      packages - the packages.
      Since:
      2.1
    • getInferredType

      @Nullable com.fasterxml.jackson.databind.JavaType getInferredType(MessageProperties properties)
      Deprecated, for removal: This API element is subject to removal in a future version.
      Return the inferred type, if the type precedence is inferred and the header is present.
      Parameters:
      properties - the message properties.
      Returns:
      the type.
      Since:
      2.2