c

akka.serialization.jackson

JacksonObjectMapperFactory

class JacksonObjectMapperFactory extends AnyRef

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.

Source
JacksonObjectMapperProvider.scala
Linear Supertypes
Type Hierarchy
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. JacksonObjectMapperFactory
  2. AnyRef
  3. Any
Implicitly
  1. by any2stringadd
  2. by StringFormat
  3. by Ensuring
  4. by ArrowAssoc
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Instance Constructors

  1. new JacksonObjectMapperFactory()

Value Members

  1. 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.

    bindingName

    name of this ObjectMapper

    jsonFactory

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

  2. def overrideConfiguredDeserializationFeatures(bindingName: String, configuredFeatures: Seq[(DeserializationFeature, Boolean)]): Seq[(DeserializationFeature, Boolean)]

    After construction of the ObjectMapper the configured deserialization features are applied to the mapper.

    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 akka.japi.Util.immutableSeq.

    bindingName

    bindingName name of this ObjectMapper

    configuredFeatures

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

  3. 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.

    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.

    bindingName

    bindingName name of this ObjectMapper

    configuredFeatures

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

  4. 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.

    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.

    bindingName

    bindingName name of this ObjectMapper

    configuredFeatures

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

  5. def overrideConfiguredJsonReadFeatures(bindingName: String, configuredFeatures: Seq[(JsonReadFeature, Boolean)]): Seq[(JsonReadFeature, Boolean)]

    JsonReadFeatures used to configure the JsonFactoryBuilder that, if provided, will later be used to create an ObjectMapper.

    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.

    bindingName

    bindingName name of this ObjectMapper

    configuredFeatures

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

  6. def overrideConfiguredJsonWriteFeatures(bindingName: String, configuredFeatures: Seq[(JsonWriteFeature, Boolean)]): Seq[(JsonWriteFeature, Boolean)]

    JsonWriteFeatures used to configure the JsonFactoryBuilder that, if provided, will later be used to create an ObjectMapper.

    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.

    bindingName

    bindingName name of this ObjectMapper

    configuredFeatures

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

  7. 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.

    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.

    bindingName

    bindingName name of this ObjectMapper

    configuredFeatures

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

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

    After construction of the ObjectMapper the configured modules are added to the mapper.

    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 akka.japi.Util.immutableSeq.

    bindingName

    bindingName name of this ObjectMapper

    configuredModules

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

  9. def overrideConfiguredSerializationFeatures(bindingName: String, configuredFeatures: Seq[(SerializationFeature, Boolean)]): Seq[(SerializationFeature, Boolean)]

    After construction of the ObjectMapper the configured serialization features are applied to the mapper.

    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 akka.japi.Util.immutableSeq.

    bindingName

    bindingName name of this ObjectMapper

    configuredFeatures

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

  10. def overrideConfiguredStreamReadFeatures(bindingName: String, configuredFeatures: Seq[(StreamReadFeature, Boolean)]): Seq[(StreamReadFeature, Boolean)]

    StreamReadFeatures used to configure the JsonFactoryBuilder that, if provided, will later be used to create an ObjectMapper.

    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.

    bindingName

    bindingName name of this ObjectMapper

    configuredFeatures

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

  11. def overrideConfiguredStreamWriteFeatures(bindingName: String, configuredFeatures: Seq[(StreamWriteFeature, Boolean)]): Seq[(StreamWriteFeature, Boolean)]

    StreamWriteFeatures used to configure the JsonFactoryBuilder that, if provided, will later be used to create an ObjectMapper.

    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.

    bindingName

    bindingName name of this ObjectMapper

    configuredFeatures

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

  12. def overrideConfiguredVisibility(bindingName: String, configuredFeatures: Seq[(PropertyAccessor, Visibility)]): Seq[(PropertyAccessor, Visibility)]

    Visibility settings used to configure the JsonFactoryBuilder that, if provided, will later be used to create an ObjectMapper.

    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.

    bindingName

    bindingName name of this ObjectMapper

    configuredFeatures

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