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.
Abstract type mapper.
- Since:
- 2.1
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringDeprecated, for removal: This API element is subject to removal in a future version.Default header name for type information.static final StringDeprecated, for removal: This API element is subject to removal in a future version.Default header name for container object contents type information.static final StringDeprecated, for removal: This API element is subject to removal in a future version.Default header name for map key type information.static final StringDeprecated, for removal: This API element is subject to removal in a future version.Default header name for key type information.static final StringDeprecated, 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 StringDeprecated, for removal: This API element is subject to removal in a future version.Default header name for key map key type information. -
Constructor Summary
ConstructorsConstructorDescriptionDeprecated, for removal: This API element is subject to removal in a future version. -
Method Summary
Modifier and TypeMethodDescriptionprotected voidDeprecated, 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 ClassLoaderDeprecated, 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 StringretrieveHeader(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 StringretrieveHeaderAsString(org.apache.kafka.common.header.Headers headers, String headerName) Deprecated, for removal: This API element is subject to removal in a future version.voidsetBeanClassLoader(ClassLoader classLoader) Deprecated, for removal: This API element is subject to removal in a future version.voidsetClassIdFieldName(String classIdFieldName) Deprecated, for removal: This API element is subject to removal in a future version.Configure header name for type information.voidsetContentClassIdFieldName(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.voidsetIdClassMapping(Map<String, Class<?>> idClassMapping) Deprecated, for removal: This API element is subject to removal in a future version.voidsetKeyClassIdFieldName(String keyClassIdFieldName) Deprecated, for removal: This API element is subject to removal in a future version.Configure header name for map key type information.voidsetUseForKey(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.
-
Field Details
-
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
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
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
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
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
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
Deprecated, for removal: This API element is subject to removal in a future version. -
setClassIdFieldName
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
Deprecated, for removal: This API element is subject to removal in a future version. -
setContentClassIdFieldName
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
Deprecated, for removal: This API element is subject to removal in a future version. -
setKeyClassIdFieldName
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
-
setBeanClassLoader
Deprecated, for removal: This API element is subject to removal in a future version.- Specified by:
setBeanClassLoaderin interfaceorg.springframework.beans.factory.BeanClassLoaderAware
-
getClassLoader
Deprecated, for removal: This API element is subject to removal in a future version. -
addHeader
-
retrieveHeader
-
retrieveHeaderAsString
-
getIdClassMapping
-
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
-
DefaultJacksonJavaTypeMapperfor Jackson 3.