Class AbstractJavaTypeMapper

java.lang.Object
org.springframework.kafka.support.mapping.AbstractJavaTypeMapper
All Implemented Interfaces:
org.springframework.beans.factory.Aware, org.springframework.beans.factory.BeanClassLoaderAware
Direct Known Subclasses:
DefaultJackson2JavaTypeMapper

@Deprecated(forRemoval=true, since="4.0") public abstract class AbstractJavaTypeMapper extends Object implements org.springframework.beans.factory.BeanClassLoaderAware
Deprecated, for removal: This API element is subject to removal in a future version.
since 4.0 in favor of DefaultJacksonJavaTypeMapper for Jackson 3.
Abstract type mapper.
Since:
2.1
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final String
    Deprecated, for removal: This API element is subject to removal in a future version.
    Default header name for type information.
    static final String
    Deprecated, for removal: This API element is subject to removal in a future version.
    Default header name for container object contents type information.
    static final String
    Deprecated, for removal: This API element is subject to removal in a future version.
    Default header name for map key type information.
    static final String
    Deprecated, for removal: This API element is subject to removal in a future version.
    Default header name for key type information.
    static final String
    Deprecated, for removal: This API element is subject to removal in a future version.
    Default header name for key container object contents type information.
    static final String
    Deprecated, for removal: This API element is subject to removal in a future version.
    Default header name for key map key type information.
  • Constructor Summary

    Constructors
    Constructor
    Description
    Deprecated, for removal: This API element is subject to removal in a future version.
     
  • Method Summary

    Modifier and Type
    Method
    Description
    protected void
    addHeader(org.apache.kafka.common.header.Headers headers, String headerName, Class<?> clazz)
    Deprecated, for removal: This API element is subject to removal in a future version.
     
    Deprecated, for removal: This API element is subject to removal in a future version.
     
    protected @Nullable ClassLoader
    Deprecated, for removal: This API element is subject to removal in a future version.
     
    Deprecated, for removal: This API element is subject to removal in a future version.
     
    Deprecated, for removal: This API element is subject to removal in a future version.
     
    Deprecated, for removal: This API element is subject to removal in a future version.
     
    protected String
    retrieveHeader(org.apache.kafka.common.header.Headers headers, String headerName)
    Deprecated, for removal: This API element is subject to removal in a future version.
     
    protected @Nullable String
    retrieveHeaderAsString(org.apache.kafka.common.header.Headers headers, String headerName)
    Deprecated, for removal: This API element is subject to removal in a future version.
     
    void
    Deprecated, for removal: This API element is subject to removal in a future version.
     
    void
    setClassIdFieldName(String classIdFieldName)
    Deprecated, for removal: This API element is subject to removal in a future version.
    Configure header name for type information.
    void
    setContentClassIdFieldName(String contentClassIdFieldName)
    Deprecated, for removal: This API element is subject to removal in a future version.
    Configure header name for container object contents type information.
    void
    setIdClassMapping(Map<String,Class<?>> idClassMapping)
    Deprecated, for removal: This API element is subject to removal in a future version.
     
    void
    setKeyClassIdFieldName(String keyClassIdFieldName)
    Deprecated, for removal: This API element is subject to removal in a future version.
    Configure header name for map key type information.
    void
    setUseForKey(boolean isKey)
    Deprecated, for removal: This API element is subject to removal in a future version.
    Configure the TypeMapper to use default key type class.

    Methods inherited from class Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • DEFAULT_CLASSID_FIELD_NAME

      public static final String DEFAULT_CLASSID_FIELD_NAME
      Deprecated, for removal: This API element is subject to removal in a future version.
      Default header name for type information.
      See Also:
    • DEFAULT_CONTENT_CLASSID_FIELD_NAME

      public static final String DEFAULT_CONTENT_CLASSID_FIELD_NAME
      Deprecated, for removal: This API element is subject to removal in a future version.
      Default header name for container object contents type information.
      See Also:
    • DEFAULT_KEY_CLASSID_FIELD_NAME

      public static final String DEFAULT_KEY_CLASSID_FIELD_NAME
      Deprecated, for removal: This API element is subject to removal in a future version.
      Default header name for map key type information.
      See Also:
    • KEY_DEFAULT_CLASSID_FIELD_NAME

      public static final String KEY_DEFAULT_CLASSID_FIELD_NAME
      Deprecated, for removal: This API element is subject to removal in a future version.
      Default header name for key type information.
      See Also:
    • KEY_DEFAULT_CONTENT_CLASSID_FIELD_NAME

      public static final String KEY_DEFAULT_CONTENT_CLASSID_FIELD_NAME
      Deprecated, for removal: This API element is subject to removal in a future version.
      Default header name for key container object contents type information.
      See Also:
    • KEY_DEFAULT_KEY_CLASSID_FIELD_NAME

      public static final String KEY_DEFAULT_KEY_CLASSID_FIELD_NAME
      Deprecated, for removal: This API element is subject to removal in a future version.
      Default header name for key map key type information.
      See Also:
  • Constructor Details

    • AbstractJavaTypeMapper

      public AbstractJavaTypeMapper()
      Deprecated, for removal: This API element is subject to removal in a future version.
  • Method Details

    • getClassIdFieldName

      public String getClassIdFieldName()
      Deprecated, for removal: This API element is subject to removal in a future version.
    • setClassIdFieldName

      public void setClassIdFieldName(String classIdFieldName)
      Deprecated, for removal: This API element is subject to removal in a future version.
      Configure header name for type information.
      Parameters:
      classIdFieldName - the header name.
      Since:
      2.1.3
    • getContentClassIdFieldName

      public String getContentClassIdFieldName()
      Deprecated, for removal: This API element is subject to removal in a future version.
    • setContentClassIdFieldName

      public void setContentClassIdFieldName(String contentClassIdFieldName)
      Deprecated, for removal: This API element is subject to removal in a future version.
      Configure header name for container object contents type information.
      Parameters:
      contentClassIdFieldName - the header name.
      Since:
      2.1.3
    • getKeyClassIdFieldName

      public String getKeyClassIdFieldName()
      Deprecated, for removal: This API element is subject to removal in a future version.
    • setKeyClassIdFieldName

      public void setKeyClassIdFieldName(String keyClassIdFieldName)
      Deprecated, for removal: This API element is subject to removal in a future version.
      Configure header name for map key type information.
      Parameters:
      keyClassIdFieldName - the header name.
      Since:
      2.1.3
    • setIdClassMapping

      public void setIdClassMapping(Map<String,Class<?>> idClassMapping)
      Deprecated, for removal: This API element is subject to removal in a future version.
    • setBeanClassLoader

      public void setBeanClassLoader(ClassLoader classLoader)
      Deprecated, for removal: This API element is subject to removal in a future version.
      Specified by:
      setBeanClassLoader in interface org.springframework.beans.factory.BeanClassLoaderAware
    • getClassLoader

      protected @Nullable ClassLoader getClassLoader()
      Deprecated, for removal: This API element is subject to removal in a future version.
    • addHeader

      protected void addHeader(org.apache.kafka.common.header.Headers headers, String headerName, Class<?> clazz)
      Deprecated, for removal: This API element is subject to removal in a future version.
    • retrieveHeader

      protected String retrieveHeader(org.apache.kafka.common.header.Headers headers, String headerName)
      Deprecated, for removal: This API element is subject to removal in a future version.
    • retrieveHeaderAsString

      protected @Nullable String retrieveHeaderAsString(org.apache.kafka.common.header.Headers headers, String headerName)
      Deprecated, for removal: This API element is subject to removal in a future version.
    • getIdClassMapping

      public Map<String,Class<?>> getIdClassMapping()
      Deprecated, for removal: This API element is subject to removal in a future version.
    • setUseForKey

      public void setUseForKey(boolean isKey)
      Deprecated, for removal: This API element is subject to removal in a future version.
      Configure the TypeMapper to use default key type class.
      Parameters:
      isKey - Use key type headers if true
      Since:
      2.1.3