fix incorrect config name (serialization-jackson) (#567)
* fix incorrect config name * Update JacksonObjectMapperProvider.scala
This commit is contained in:
parent
80e4e800c8
commit
02595bbfd4
2 changed files with 3 additions and 3 deletions
|
|
@ -230,7 +230,7 @@ object JacksonObjectMapperProvider extends ExtensionId[JacksonObjectMapperProvid
|
||||||
e,
|
e,
|
||||||
s"Could not load configured Jackson module [$fqcn], " +
|
s"Could not load configured Jackson module [$fqcn], " +
|
||||||
"please verify classpath dependencies or amend the configuration " +
|
"please verify classpath dependencies or amend the configuration " +
|
||||||
"[pekko.serialization.jackson-modules]. Continuing without this module."))
|
"[pekko.serialization.jackson.jackson-modules]. Continuing without this module."))
|
||||||
None
|
None
|
||||||
}
|
}
|
||||||
} else
|
} else
|
||||||
|
|
@ -303,7 +303,7 @@ object JacksonObjectMapperProvider extends ExtensionId[JacksonObjectMapperProvid
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Registry of shared `ObjectMapper` instances, each with it's unique `bindingName`.
|
* Registry of shared `ObjectMapper` instances, each with its unique `bindingName`.
|
||||||
*/
|
*/
|
||||||
final class JacksonObjectMapperProvider(system: ExtendedActorSystem) extends Extension {
|
final class JacksonObjectMapperProvider(system: ExtendedActorSystem) extends Extension {
|
||||||
private val objectMappers = new ConcurrentHashMap[String, ObjectMapper]
|
private val objectMappers = new ConcurrentHashMap[String, ObjectMapper]
|
||||||
|
|
|
||||||
|
|
@ -464,7 +464,7 @@ import pekko.util.OptionVal
|
||||||
private def isBoundToJacksonSerializer(clazz: Class[_]): Boolean = {
|
private def isBoundToJacksonSerializer(clazz: Class[_]): Boolean = {
|
||||||
try {
|
try {
|
||||||
// The reason for using isInstanceOf rather than `eq this` is to allow change of
|
// The reason for using isInstanceOf rather than `eq this` is to allow change of
|
||||||
// serializizer within the Jackson family, but we don't trust other serializers
|
// serializer within the Jackson family, but we don't trust other serializers
|
||||||
// because they might be bound to open-ended interfaces like java.io.Serializable.
|
// because they might be bound to open-ended interfaces like java.io.Serializable.
|
||||||
val boundSerializer = serialization.serializerFor(clazz)
|
val boundSerializer = serialization.serializerFor(clazz)
|
||||||
boundSerializer.isInstanceOf[JacksonSerializer]
|
boundSerializer.isInstanceOf[JacksonSerializer]
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue