final class JacksonObjectMapperProvider extends Extension
Registry of shared ObjectMapper
instances, each with it's unique bindingName
.
- Alphabetic
- By Inheritance
- JacksonObjectMapperProvider
- Extension
- AnyRef
- Any
- by any2stringadd
- by StringFormat
- by Ensuring
- by ArrowAssoc
- Hide All
- Show All
- Public
- Protected
Instance Constructors
- new JacksonObjectMapperProvider(system: ExtendedActorSystem)
Value Members
- def create(bindingName: String, jsonFactory: Optional[JsonFactory]): ObjectMapper
Java API: Creates a new instance of a Jackson
ObjectMapper
with sensible defaults and modules configured inakka.serialization.jackson.jackson-modules
.Java API: Creates a new instance of a Jackson
ObjectMapper
with sensible defaults and modules configured inakka.serialization.jackson.jackson-modules
. It's using JacksonObjectMapperProviderSetup if theActorSystem
is started with such akka.actor.setup.ActorSystemSetup.- bindingName
name of this
ObjectMapper
- jsonFactory
optional
JsonFactory
such asCBORFactory
, for plain JSONNone
(defaults) can be used
- def create(bindingName: String, jsonFactory: Option[JsonFactory]): ObjectMapper
Scala API: Creates a new instance of a Jackson
ObjectMapper
with sensible defaults and modules configured inakka.serialization.jackson.jackson-modules
.Scala API: Creates a new instance of a Jackson
ObjectMapper
with sensible defaults and modules configured inakka.serialization.jackson.jackson-modules
. It's using JacksonObjectMapperProviderSetup if theActorSystem
is started with such akka.actor.setup.ActorSystemSetup.- bindingName
name of this
ObjectMapper
- jsonFactory
optional
JsonFactory
such asCBORFactory
, for plain JSONNone
(defaults) can be used
- 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 inakka.serialization.jackson.jackson-modules
. It's using JacksonObjectMapperProviderSetup if theActorSystem
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 asCBORFactory
, for plain JSONNone
(defaults) can be used
- 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 inakka.serialization.jackson.jackson-modules
. It's using JacksonObjectMapperProviderSetup if theActorSystem
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 asCBORFactory
, for plain JSONNone
(defaults) can be used