Package io.tarantool.driver.mappers
Class DefaultMessagePackMapperFactory
- java.lang.Object
-
- io.tarantool.driver.mappers.DefaultMessagePackMapperFactory
-
public final class DefaultMessagePackMapperFactory extends Object
Provides shortcuts for instantiatingDefaultMessagePackMapper
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description DefaultMessagePackMapper
copyOf(DefaultMessagePackMapper mapper)
Get modification-safe instance of the given mapper (shallow copy).DefaultMessagePackMapper
defaultComplexTypesMapper()
Get modification-safe instance of the mapper.DefaultMessagePackMapper
defaultSimpleTypeMapper()
Get modification-safe instance of the mapper.DefaultMessagePackMapper
emptyMapper()
Get new empty mapper.static DefaultMessagePackMapperFactory
getInstance()
Get factory instance.
-
-
-
Method Detail
-
defaultSimpleTypeMapper
public DefaultMessagePackMapper defaultSimpleTypeMapper()
Get modification-safe instance of the mapper. The instance already contains converters for simple types- Returns:
DefaultMessagePackMapper
instance
-
defaultComplexTypesMapper
public DefaultMessagePackMapper defaultComplexTypesMapper()
Get modification-safe instance of the mapper. The instance contains converters for simple types and complex typesMap
andList
- Returns:
DefaultMessagePackMapper
instance
-
copyOf
public DefaultMessagePackMapper copyOf(DefaultMessagePackMapper mapper)
Get modification-safe instance of the given mapper (shallow copy).- Parameters:
mapper
- configured mapper instance- Returns:
- new mapper instance
-
emptyMapper
public DefaultMessagePackMapper emptyMapper()
Get new empty mapper.- Returns:
- new mapper instance
-
getInstance
public static DefaultMessagePackMapperFactory getInstance()
Get factory instance.- Returns:
- factory instance
-
-