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,
|
||||
s"Could not load configured Jackson module [$fqcn], " +
|
||||
"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
|
||||
}
|
||||
} 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 {
|
||||
private val objectMappers = new ConcurrentHashMap[String, ObjectMapper]
|
||||
|
|
|
|||
|
|
@ -464,7 +464,7 @@ import pekko.util.OptionVal
|
|||
private def isBoundToJacksonSerializer(clazz: Class[_]): Boolean = {
|
||||
try {
|
||||
// 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.
|
||||
val boundSerializer = serialization.serializerFor(clazz)
|
||||
boundSerializer.isInstanceOf[JacksonSerializer]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue