JacksonObjectMapperFactory

org.apache.pekko.serialization.jackson.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.

Attributes

Graph
Supertypes
class Object
trait Matchable
class Any

Members list

Value members

Concrete methods

def newObjectMapper(bindingName: String, jsonFactory: JsonFactory): ObjectMapper

Override this method to create a new custom instance of ObjectMapper for the given serializerIdentifier.

Override this method to create a new custom instance of ObjectMapper for the given serializerIdentifier.

Value parameters

bindingName

name of this ObjectMapper

jsonFactory

optional JsonFactory such as CBORFactory, for plain JSON None (defaults) can be used

Attributes

After construction of the ObjectMapper the configured deserialization features are applied to the mapper. These features can be amended programatically by overriding this method and return the features that are to be applied to the ObjectMapper.

After construction of the ObjectMapper the configured deserialization features are applied to the mapper. These features can be amended programatically by overriding this method and return the features that are to be applied to the ObjectMapper.

When implementing a JacksonObjectMapperFactory with Java the immutable.Seq can be created with pekko.japi.Util.immutableSeq.

Value parameters

bindingName

bindingName name of this ObjectMapper

configuredFeatures

the list of DeserializationFeature that were configured in pekko.serialization.jackson.deserialization-features

Attributes

def overrideConfiguredJsonGeneratorFeatures(bindingName: String, configuredFeatures: Seq[(Feature, Boolean)]): Seq[(Feature, Boolean)]

After construction of the ObjectMapper the 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 the ObjectMapper.

After construction of the ObjectMapper the 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 the ObjectMapper.

Value parameters

bindingName

bindingName name of this ObjectMapper

configuredFeatures

the list of JsonGenerator.Feature that were configured in pekko.serialization.jackson.json-generator-features

Attributes

def overrideConfiguredJsonParserFeatures(bindingName: String, configuredFeatures: Seq[(Feature, Boolean)]): Seq[(Feature, Boolean)]

After construction of the ObjectMapper the 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 the ObjectMapper.

After construction of the ObjectMapper the 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 the ObjectMapper.

Value parameters

bindingName

bindingName name of this ObjectMapper

configuredFeatures

the list of JsonParser.Feature that were configured in pekko.serialization.jackson.json-parser-features

Attributes

JsonReadFeatures used to configure the JsonFactoryBuilder that, if provided, will later be used to create an ObjectMapper. These features can be amended programmatically by overriding this method and return the features that are to be applied to the JsonFactoryBuilder.

JsonReadFeatures used to configure the JsonFactoryBuilder that, if provided, will later be used to create an ObjectMapper. These features can be amended programmatically by overriding this method and return the features that are to be applied to the JsonFactoryBuilder.

Value parameters

bindingName

bindingName name of this ObjectMapper

configuredFeatures

the list of JsonReadFeature that were configured in pekko.serialization.jackson.json-read-features

Attributes

JsonWriteFeatures used to configure the JsonFactoryBuilder that, if provided, will later be used to create an ObjectMapper. These features can be amended programmatically by overriding this method and return the features that are to be applied to the JsonFactoryBuilder.

JsonWriteFeatures used to configure the JsonFactoryBuilder that, if provided, will later be used to create an ObjectMapper. These features can be amended programmatically by overriding this method and return the features that are to be applied to the JsonFactoryBuilder.

Value parameters

bindingName

bindingName name of this ObjectMapper

configuredFeatures

the list of JsonWriteFeature that were configured in pekko.serialization.jackson.json-write-features

Attributes

def overrideConfiguredMapperFeatures(bindingName: String, configuredFeatures: Seq[(MapperFeature, Boolean)]): Seq[(MapperFeature, Boolean)]

After construction of the ObjectMapper the 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 the ObjectMapper.

After construction of the ObjectMapper the 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 the ObjectMapper.

Value parameters

bindingName

bindingName name of this ObjectMapper

configuredFeatures

the list of MapperFeatures that were configured in pekko.serialization.jackson.mapper-features

Attributes

def overrideConfiguredModules(bindingName: String, configuredModules: Seq[Module]): Seq[Module]

After construction of the ObjectMapper the configured modules are added to the mapper. These modules can be amended programatically by overriding this method and return the modules that are to be applied to the ObjectMapper.

After construction of the ObjectMapper the configured modules are added to the mapper. These modules can be amended programatically by overriding this method and return the modules that are to be applied to the ObjectMapper.

When implementing a JacksonObjectMapperFactory with Java the immutable.Seq can be created with pekko.japi.Util.immutableSeq.

Value parameters

bindingName

bindingName name of this ObjectMapper

configuredModules

the list of Modules that were configured in pekko.serialization.jackson.deserialization-features

Attributes

After construction of the ObjectMapper the configured serialization features are applied to the mapper. These features can be amended programatically by overriding this method and return the features that are to be applied to the ObjectMapper.

After construction of the ObjectMapper the configured serialization features are applied to the mapper. These features can be amended programatically by overriding this method and return the features that are to be applied to the ObjectMapper.

When implementing a JacksonObjectMapperFactory with Java the immutable.Seq can be created with pekko.japi.Util.immutableSeq.

Value parameters

bindingName

bindingName name of this ObjectMapper

configuredFeatures

the list of SerializationFeature that were configured in pekko.serialization.jackson.serialization-features

Attributes

StreamReadFeatures used to configure the JsonFactoryBuilder that, if provided, will later be used to create an ObjectMapper. These features can be amended programmatically by overriding this method and return the features that are to be applied to the JsonFactoryBuilder.

StreamReadFeatures used to configure the JsonFactoryBuilder that, if provided, will later be used to create an ObjectMapper. These features can be amended programmatically by overriding this method and return the features that are to be applied to the JsonFactoryBuilder.

Value parameters

bindingName

bindingName name of this ObjectMapper

configuredFeatures

the list of StreamReadFeature that were configured in pekko.serialization.jackson.stream-read-features

Attributes

StreamWriteFeatures used to configure the JsonFactoryBuilder that, if provided, will later be used to create an ObjectMapper. These features can be amended programmatically by overriding this method and return the features that are to be applied to the JsonFactoryBuilder.

StreamWriteFeatures used to configure the JsonFactoryBuilder that, if provided, will later be used to create an ObjectMapper. These features can be amended programmatically by overriding this method and return the features that are to be applied to the JsonFactoryBuilder.

Value parameters

bindingName

bindingName name of this ObjectMapper

configuredFeatures

the list of StreamWriterFeature that were configured in pekko.serialization.jackson.stream-write-features

Attributes

Visibility settings used to configure the JsonFactoryBuilder that, if provided, will later be used to create an ObjectMapper. These settings can be amended programmatically by overriding this method and return the values that are to be applied to the JsonFactoryBuilder.

Visibility settings used to configure the JsonFactoryBuilder that, if provided, will later be used to create an ObjectMapper. These settings can be amended programmatically by overriding this method and return the values that are to be applied to the JsonFactoryBuilder.

Value parameters

bindingName

bindingName name of this ObjectMapper

configuredFeatures

the list of PropertyAccessor/JsonAutoDetect.Visibility that were configured in pekko.serialization.jackson.visibility

Attributes