enable misc serializers by default for Artery, #21339

* placed them in a new section additional-serialization-bindings,
  which is included by default when Artery is enabled
* can also be enabled with enable-additional-serialization-bindings
  flag to simplify usage with old remoting
* added a JavaSerializable marker trait that is bound to JavaSerializer
  in testkit, this can be used in tests so that we eventually can run
  tests without the java.io.Serializable binding
This commit is contained in:
Patrik Nordwall 2016-09-09 09:01:15 +02:00
parent 02de58392a
commit 97e0628173
12 changed files with 70 additions and 31 deletions

View file

@ -13,13 +13,10 @@ import com.typesafe.config.ConfigFactory
object MiscMessageSerializerSpec {
val serializationTestOverrides =
"""
|akka.actor.serialization-bindings = {
| "akka.actor.Identify" = akka-misc
| "akka.actor.ActorIdentity" = akka-misc
| "scala.Some" = akka-misc
| "scala.None$" = akka-misc
|}
""".stripMargin
akka.actor.enable-additional-serialization-bindings=on
# or they can be enabled with
# akka.remote.artery.enabled=on
"""
val testConfig = ConfigFactory.parseString(serializationTestOverrides).withFallback(AkkaSpec.testConf)
}