final class JacksonObjectMapperProvider extends Extension

Registry of shared ObjectMapper instances, each with it's unique bindingName.

Source
JacksonObjectMapperProvider.scala
Linear Supertypes
Type Hierarchy
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. JacksonObjectMapperProvider
  2. Extension
  3. AnyRef
  4. 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 JacksonObjectMapperProvider(system: ExtendedActorSystem)

Value Members

  1. def create(bindingName: String, jsonFactory: Optional[JsonFactory]): ObjectMapper

    Java API: Creates a new instance of a Jackson ObjectMapper with sensible defaults and modules configured in akka.serialization.jackson.jackson-modules.

    Java API: Creates a new instance of a Jackson ObjectMapper with sensible defaults and modules configured in akka.serialization.jackson.jackson-modules. It's using JacksonObjectMapperProviderSetup if the ActorSystem is started with such akka.actor.setup.ActorSystemSetup.

    bindingName

    name of this ObjectMapper

    jsonFactory

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

    See also

    JacksonObjectMapperProvider#getOrCreate

  2. def create(bindingName: String, jsonFactory: Option[JsonFactory]): ObjectMapper

    Scala API: Creates a new instance of a Jackson ObjectMapper with sensible defaults and modules configured in akka.serialization.jackson.jackson-modules.

    Scala API: Creates a new instance of a Jackson ObjectMapper with sensible defaults and modules configured in akka.serialization.jackson.jackson-modules. It's using JacksonObjectMapperProviderSetup if the ActorSystem is started with such akka.actor.setup.ActorSystemSetup.

    bindingName

    name of this ObjectMapper

    jsonFactory

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

    See also

    JacksonObjectMapperProvider#getOrCreate

  3. def getOrCreate(bindingName: String, jsonFactory: Optional[JsonFactory]): ObjectMapper

    Java API: Returns an existing Jackson ObjectMapper that was created previously with this method, or creates a new instance.

    Java API: Returns an existing Jackson ObjectMapper that was created previously with this method, or creates a new instance.

    The ObjectMapper is created with sensible defaults and modules configured in akka.serialization.jackson.jackson-modules. It's using JacksonObjectMapperProviderSetup if the ActorSystem is started with such akka.actor.setup.ActorSystemSetup.

    The returned ObjectMapper must not be modified, because it may already be in use and such modifications are not thread-safe.

    bindingName

    name of this ObjectMapper

    jsonFactory

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

  4. def getOrCreate(bindingName: String, jsonFactory: Option[JsonFactory]): ObjectMapper

    Scala API: Returns an existing Jackson ObjectMapper that was created previously with this method, or creates a new instance.

    Scala API: Returns an existing Jackson ObjectMapper that was created previously with this method, or creates a new instance.

    The ObjectMapper is created with sensible defaults and modules configured in akka.serialization.jackson.jackson-modules. It's using JacksonObjectMapperProviderSetup if the ActorSystem is started with such akka.actor.setup.ActorSystemSetup.

    The returned ObjectMapper must not be modified, because it may already be in use and such modifications are not thread-safe.

    bindingName

    name of this ObjectMapper

    jsonFactory

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