Class JacksonObjectMapperFactory
java.lang.Object
org.apache.pekko.serialization.jackson3.JacksonObjectMapperFactory
Used with 
JacksonObjectMapperProviderSetup for defining a JacksonObjectMapperProvider that can be
 passed in when ActorSystem is created rather than creating one from configured class name.
 Create a subclass and override the methods to amend the defaults.- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptiontools.jackson.dataformat.cbor.CBORMapper.BuildernewCBORMapperBuilder(tools.jackson.dataformat.cbor.CBORFactory factory) tools.jackson.databind.json.JsonMapper.BuildernewObjectMapperBuilder(tools.jackson.core.json.JsonFactory jsonFactory) scala.collection.immutable.Seq<scala.Tuple2<tools.jackson.databind.cfg.DateTimeFeature,Object>> overrideConfiguredDateTimeFeatures(String bindingName, scala.collection.immutable.Seq<scala.Tuple2<tools.jackson.databind.cfg.DateTimeFeature, Object>> configuredFeatures) After construction of theObjectMapperthe configured datetime features are applied to the mapper.scala.collection.immutable.Seq<scala.Tuple2<tools.jackson.databind.DeserializationFeature,Object>> overrideConfiguredDeserializationFeatures(String bindingName, scala.collection.immutable.Seq<scala.Tuple2<tools.jackson.databind.DeserializationFeature, Object>> configuredFeatures) After construction of theObjectMapperthe configured deserialization features are applied to the mapper.scala.collection.immutable.Seq<scala.Tuple2<tools.jackson.databind.cfg.EnumFeature,Object>> overrideConfiguredEnumFeatures(String bindingName, scala.collection.immutable.Seq<scala.Tuple2<tools.jackson.databind.cfg.EnumFeature, Object>> configuredFeatures) After construction of theObjectMapperthe configured enum features are applied to the mapper.scala.collection.immutable.Seq<scala.Tuple2<tools.jackson.core.StreamWriteFeature,Object>> overrideConfiguredJsonGeneratorFeatures(String bindingName, scala.collection.immutable.Seq<scala.Tuple2<tools.jackson.core.StreamWriteFeature, Object>> configuredFeatures) After construction of theObjectMapperthe configured JSON generator features are applied to the mapper.scala.collection.immutable.Seq<scala.Tuple2<tools.jackson.core.StreamReadFeature,Object>> overrideConfiguredJsonParserFeatures(String bindingName, scala.collection.immutable.Seq<scala.Tuple2<tools.jackson.core.StreamReadFeature, Object>> configuredFeatures) After construction of theObjectMapperthe configured JSON parser features are applied to the mapper.scala.collection.immutable.Seq<scala.Tuple2<tools.jackson.core.json.JsonReadFeature,Object>> overrideConfiguredJsonReadFeatures(String bindingName, scala.collection.immutable.Seq<scala.Tuple2<tools.jackson.core.json.JsonReadFeature, Object>> configuredFeatures) JsonReadFeatures used to configure theJsonFactoryBuilderthat, if provided, will later be used to create anObjectMapper.scala.collection.immutable.Seq<scala.Tuple2<tools.jackson.core.json.JsonWriteFeature,Object>> overrideConfiguredJsonWriteFeatures(String bindingName, scala.collection.immutable.Seq<scala.Tuple2<tools.jackson.core.json.JsonWriteFeature, Object>> configuredFeatures) JsonWriteFeatures used to configure theJsonFactoryBuilderthat, if provided, will later be used to create anObjectMapper.scala.collection.immutable.Seq<scala.Tuple2<tools.jackson.databind.MapperFeature,Object>> overrideConfiguredMapperFeatures(String bindingName, scala.collection.immutable.Seq<scala.Tuple2<tools.jackson.databind.MapperFeature, Object>> configuredFeatures) After construction of theObjectMapperthe configured mapper features are applied to the mapper.scala.collection.immutable.Seq<tools.jackson.databind.JacksonModule>overrideConfiguredModules(String bindingName, scala.collection.immutable.Seq<tools.jackson.databind.JacksonModule> configuredModules) After construction of theObjectMapperthe configured modules are added to the mapper.scala.collection.immutable.Seq<scala.Tuple2<tools.jackson.databind.SerializationFeature,Object>> overrideConfiguredSerializationFeatures(String bindingName, scala.collection.immutable.Seq<scala.Tuple2<tools.jackson.databind.SerializationFeature, Object>> configuredFeatures) After construction of theObjectMapperthe configured serialization features are applied to the mapper.scala.collection.immutable.Seq<scala.Tuple2<tools.jackson.core.StreamReadFeature,Object>> overrideConfiguredStreamReadFeatures(String bindingName, scala.collection.immutable.Seq<scala.Tuple2<tools.jackson.core.StreamReadFeature, Object>> configuredFeatures) StreamReadFeatures used to configure theJsonFactoryBuilderthat, if provided, will later be used to create anObjectMapper.scala.collection.immutable.Seq<scala.Tuple2<tools.jackson.core.StreamWriteFeature,Object>> overrideConfiguredStreamWriteFeatures(String bindingName, scala.collection.immutable.Seq<scala.Tuple2<tools.jackson.core.StreamWriteFeature, Object>> configuredFeatures) StreamWriteFeatures used to configure theJsonFactoryBuilderthat, if provided, will later be used to create anObjectMapper.scala.collection.immutable.Seq<scala.Tuple2<com.fasterxml.jackson.annotation.PropertyAccessor,com.fasterxml.jackson.annotation.JsonAutoDetect.Visibility>> overrideConfiguredVisibility(String bindingName, scala.collection.immutable.Seq<scala.Tuple2<com.fasterxml.jackson.annotation.PropertyAccessor, com.fasterxml.jackson.annotation.JsonAutoDetect.Visibility>> configuredFeatures) Visibility settings used to configure theJsonFactoryBuilderthat, if provided, will later be used to create anObjectMapper.
- 
Constructor Details- 
JacksonObjectMapperFactorypublic JacksonObjectMapperFactory()
 
- 
- 
Method Details- 
newCBORMapperBuilderpublic tools.jackson.dataformat.cbor.CBORMapper.Builder newCBORMapperBuilder(tools.jackson.dataformat.cbor.CBORFactory factory) 
- 
newObjectMapperBuilderpublic tools.jackson.databind.json.JsonMapper.Builder newObjectMapperBuilder(tools.jackson.core.json.JsonFactory jsonFactory) 
- 
overrideConfiguredDateTimeFeaturespublic scala.collection.immutable.Seq<scala.Tuple2<tools.jackson.databind.cfg.DateTimeFeature,Object>> overrideConfiguredDateTimeFeatures(String bindingName, scala.collection.immutable.Seq<scala.Tuple2<tools.jackson.databind.cfg.DateTimeFeature, Object>> configuredFeatures) After construction of theObjectMapperthe configured datetime features are applied to the mapper. These features can be amended programmatically by overriding this method and return the features that are to be applied to theObjectMapper.When implementing a JacksonObjectMapperFactorywith Java theimmutable.Seqcan be created withpekko.japi.Util.immutableSeq.- Parameters:
- bindingName- bindingName name of this- ObjectMapper
- configuredFeatures- the list of- DateTimeFeaturethat were configured in- pekko.serialization.jackson3.datetime-features
 
- 
overrideConfiguredDeserializationFeaturespublic scala.collection.immutable.Seq<scala.Tuple2<tools.jackson.databind.DeserializationFeature,Object>> overrideConfiguredDeserializationFeatures(String bindingName, scala.collection.immutable.Seq<scala.Tuple2<tools.jackson.databind.DeserializationFeature, Object>> configuredFeatures) After construction of theObjectMapperthe configured deserialization features are applied to the mapper. These features can be amended programmatically by overriding this method and return the features that are to be applied to theObjectMapper.When implementing a JacksonObjectMapperFactorywith Java theimmutable.Seqcan be created withpekko.japi.Util.immutableSeq.- Parameters:
- bindingName- bindingName name of this- ObjectMapper
- configuredFeatures- the list of- DeserializationFeaturethat were configured in- pekko.serialization.jackson3.deserialization-features
 
- 
overrideConfiguredEnumFeaturespublic scala.collection.immutable.Seq<scala.Tuple2<tools.jackson.databind.cfg.EnumFeature,Object>> overrideConfiguredEnumFeatures(String bindingName, scala.collection.immutable.Seq<scala.Tuple2<tools.jackson.databind.cfg.EnumFeature, Object>> configuredFeatures) After construction of theObjectMapperthe configured enum features are applied to the mapper. These features can be amended programmatically by overriding this method and return the features that are to be applied to theObjectMapper.When implementing a JacksonObjectMapperFactorywith Java theimmutable.Seqcan be created withpekko.japi.Util.immutableSeq.- Parameters:
- bindingName- bindingName name of this- ObjectMapper
- configuredFeatures- the list of- DateTimeFeaturethat were configured in- pekko.serialization.jackson3.enum-features
 
- 
overrideConfiguredJsonGeneratorFeaturespublic scala.collection.immutable.Seq<scala.Tuple2<tools.jackson.core.StreamWriteFeature,Object>> overrideConfiguredJsonGeneratorFeatures(String bindingName, scala.collection.immutable.Seq<scala.Tuple2<tools.jackson.core.StreamWriteFeature, Object>> configuredFeatures) After construction of theObjectMapperthe configured JSON generator features are applied to the mapper. These features can be amended programmatically by overriding this method and return the features that are to be applied to theObjectMapper.- Parameters:
- bindingName- bindingName name of this- ObjectMapper
- configuredFeatures- the list of- StreamWriteFeaturethat were configured in- pekko.serialization.jackson3.json-generator-features
 
- 
overrideConfiguredJsonParserFeaturespublic scala.collection.immutable.Seq<scala.Tuple2<tools.jackson.core.StreamReadFeature,Object>> overrideConfiguredJsonParserFeatures(String bindingName, scala.collection.immutable.Seq<scala.Tuple2<tools.jackson.core.StreamReadFeature, Object>> configuredFeatures) After construction of theObjectMapperthe configured JSON parser features are applied to the mapper. These features can be amended programmatically by overriding this method and return the features that are to be applied to theObjectMapper.- Parameters:
- bindingName- bindingName name of this- ObjectMapper
- configuredFeatures- the list of- StreamReadFeaturethat were configured in- pekko.serialization.jackson3.stream-read-features
 
- 
overrideConfiguredJsonReadFeaturespublic scala.collection.immutable.Seq<scala.Tuple2<tools.jackson.core.json.JsonReadFeature,Object>> overrideConfiguredJsonReadFeatures(String bindingName, scala.collection.immutable.Seq<scala.Tuple2<tools.jackson.core.json.JsonReadFeature, Object>> configuredFeatures) JsonReadFeatures used to configure theJsonFactoryBuilderthat, if provided, will later be used to create anObjectMapper. These features can be amended programmatically by overriding this method and return the features that are to be applied to theJsonFactoryBuilder.- Parameters:
- bindingName- bindingName name of this- ObjectMapper
- configuredFeatures- the list of- JsonReadFeaturethat were configured in- pekko.serialization.jackson3.json-read-features
 
- 
overrideConfiguredJsonWriteFeaturespublic scala.collection.immutable.Seq<scala.Tuple2<tools.jackson.core.json.JsonWriteFeature,Object>> overrideConfiguredJsonWriteFeatures(String bindingName, scala.collection.immutable.Seq<scala.Tuple2<tools.jackson.core.json.JsonWriteFeature, Object>> configuredFeatures) JsonWriteFeatures used to configure theJsonFactoryBuilderthat, if provided, will later be used to create anObjectMapper. These features can be amended programmatically by overriding this method and return the features that are to be applied to theJsonFactoryBuilder.- Parameters:
- bindingName- bindingName name of this- ObjectMapper
- configuredFeatures- the list of- JsonWriteFeaturethat were configured in- pekko.serialization.jackson3.json-write-features
 
- 
overrideConfiguredMapperFeaturespublic scala.collection.immutable.Seq<scala.Tuple2<tools.jackson.databind.MapperFeature,Object>> overrideConfiguredMapperFeatures(String bindingName, scala.collection.immutable.Seq<scala.Tuple2<tools.jackson.databind.MapperFeature, Object>> configuredFeatures) After construction of theObjectMapperthe configured mapper features are applied to the mapper. These features can be amended programmatically by overriding this method and return the features that are to be applied to theObjectMapper.- Parameters:
- bindingName- bindingName name of this- ObjectMapper
- configuredFeatures- the list of- MapperFeaturesthat were configured in- pekko.serialization.jackson3.mapper-features
 
- 
overrideConfiguredModulespublic scala.collection.immutable.Seq<tools.jackson.databind.JacksonModule> overrideConfiguredModules(String bindingName, scala.collection.immutable.Seq<tools.jackson.databind.JacksonModule> configuredModules) After construction of theObjectMapperthe configured modules are added to the mapper. These modules can be amended programmatically by overriding this method and return the modules that are to be applied to theObjectMapper.When implementing a JacksonObjectMapperFactorywith Java theimmutable.Seqcan be created withpekko.japi.Util.immutableSeq.- Parameters:
- bindingName- bindingName name of this- ObjectMapper
- configuredModules- the list of- Modulesthat were configured in- pekko.serialization.jackson3.deserialization-features
 
- 
overrideConfiguredSerializationFeaturespublic scala.collection.immutable.Seq<scala.Tuple2<tools.jackson.databind.SerializationFeature,Object>> overrideConfiguredSerializationFeatures(String bindingName, scala.collection.immutable.Seq<scala.Tuple2<tools.jackson.databind.SerializationFeature, Object>> configuredFeatures) After construction of theObjectMapperthe configured serialization features are applied to the mapper. These features can be amended programmatically by overriding this method and return the features that are to be applied to theObjectMapper.When implementing a JacksonObjectMapperFactorywith Java theimmutable.Seqcan be created withpekko.japi.Util.immutableSeq.- Parameters:
- bindingName- bindingName name of this- ObjectMapper
- configuredFeatures- the list of- SerializationFeaturethat were configured in- pekko.serialization.jackson3.serialization-features
 
- 
overrideConfiguredStreamReadFeaturespublic scala.collection.immutable.Seq<scala.Tuple2<tools.jackson.core.StreamReadFeature,Object>> overrideConfiguredStreamReadFeatures(String bindingName, scala.collection.immutable.Seq<scala.Tuple2<tools.jackson.core.StreamReadFeature, Object>> configuredFeatures) StreamReadFeatures used to configure theJsonFactoryBuilderthat, if provided, will later be used to create anObjectMapper. These features can be amended programmatically by overriding this method and return the features that are to be applied to theJsonFactoryBuilder.- Parameters:
- bindingName- bindingName name of this- ObjectMapper
- configuredFeatures- the list of- StreamReadFeaturethat were configured in- pekko.serialization.jackson3.stream-read-features
 
- 
overrideConfiguredStreamWriteFeaturespublic scala.collection.immutable.Seq<scala.Tuple2<tools.jackson.core.StreamWriteFeature,Object>> overrideConfiguredStreamWriteFeatures(String bindingName, scala.collection.immutable.Seq<scala.Tuple2<tools.jackson.core.StreamWriteFeature, Object>> configuredFeatures) StreamWriteFeatures used to configure theJsonFactoryBuilderthat, if provided, will later be used to create anObjectMapper. These features can be amended programmatically by overriding this method and return the features that are to be applied to theJsonFactoryBuilder.- Parameters:
- bindingName- bindingName name of this- ObjectMapper
- configuredFeatures- the list of- StreamWriterFeaturethat were configured in- pekko.serialization.jackson3.stream-write-features
 
- 
overrideConfiguredVisibilitypublic scala.collection.immutable.Seq<scala.Tuple2<com.fasterxml.jackson.annotation.PropertyAccessor,com.fasterxml.jackson.annotation.JsonAutoDetect.Visibility>> overrideConfiguredVisibility(String bindingName, scala.collection.immutable.Seq<scala.Tuple2<com.fasterxml.jackson.annotation.PropertyAccessor, com.fasterxml.jackson.annotation.JsonAutoDetect.Visibility>> configuredFeatures) Visibility settings used to configure theJsonFactoryBuilderthat, if provided, will later be used to create anObjectMapper. These settings can be amended programmatically by overriding this method and return the values that are to be applied to theJsonFactoryBuilder.- Parameters:
- bindingName- bindingName name of this- ObjectMapper
- configuredFeatures- the list of- PropertyAccessor/- JsonAutoDetect.Visibilitythat were configured in- pekko.serialization.jackson3.visibility
 
 
-